Hvis jeg glemmer min kode, kan jeg ikke logge ind.

Breakdown of Hvis jeg glemmer min kode, kan jeg ikke logge ind.

jeg
I
min
my
hvis
if
kunne
can
ikke
not
glemme
to forget
koden
the code
logge ind
to log in

Questions & Answers about Hvis jeg glemmer min kode, kan jeg ikke logge ind.

Why does the sentence start with hvis?

Hvis means if. It introduces a condition:

  • Hvis jeg glemmer min kode = If I forget my password/code

It is used for real or possible conditions. In this sentence, the speaker is saying what happens under that condition.

A useful comparison:

  • hvis = if
  • når = when

So:

  • Hvis jeg glemmer min kode... = if I forget it
  • Når jeg glemmer min kode... = when I forget it, implying it does happen
Why is it glemmer and not glemme?

Because jeg is the subject, and the verb must be in a finite form. Glemmer is the present tense of at glemme.

  • at glemme = to forget
  • jeg glemmer = I forget / I am forgetting

In Danish, after hvis, you still use a normal conjugated verb:

  • Hvis jeg glemmer...
  • not Hvis jeg glemme...

Also, Danish often uses the present tense where English might also use present tense in an if-clause:

  • If I forget my password, ...
  • Hvis jeg glemmer min kode, ...
Why is the word order Hvis jeg glemmer... and not Hvis glemmer jeg...?

Because in a subordinate clause introduced by hvis, Danish normally keeps the basic word order:

  • subject + verb
  • jeg glemmer

So:

  • Hvis jeg glemmer min kode is correct.

The inverted order glemmer jeg is not used here.

A very important pattern:

  • Main clause: often verb in second position
  • Subordinate clause: more regular subject + verb order
Why is it min kode and not mit kode?

Because kode is a common gender noun in Danish, and common gender nouns take min for my.

  • en kode = a code/password
  • therefore: min kode = my code/password

Compare:

  • en bilmin bil
  • et husmit hus

So the possessive must match the gender of the noun:

  • en-wordmin
  • et-wordmit
What exactly does kode mean here?

In this context, kode usually means a password, PIN, or login code, depending on the situation.

Danish often uses kode in places where English might be more specific. So the exact translation depends on context:

  • password
  • PIN
  • access code

If this is about logging in to an account, English would often naturally say password even though the Danish says kode.

Why is it kan jeg ikke logge ind instead of jeg kan ikke logge ind?

Because Danish main clauses follow the verb-second rule. When the sentence begins with the if-clause:

  • Hvis jeg glemmer min kode

that whole clause takes the first position. Then the finite verb of the main clause must come next:

  • kan

So the main clause becomes:

  • kan jeg ikke logge ind

This is a very common pattern in Danish:

  • Hvis det regner, bliver jeg hjemme.
  • Når han kommer, starter vi.

If the main clause stood alone, it would be:

  • Jeg kan ikke logge ind.

But after a fronted clause, inversion happens:

  • ..., kan jeg ikke logge ind.
Why does ikke come after jeg?

In the main clause, ikke usually comes after the finite verb and the subject when inversion has happened.

Here the order is:

  • kan = finite verb
  • jeg = subject
  • ikke = not
  • logge ind = infinitive verb phrase

So:

  • kan jeg ikke logge ind

This may feel different from English, but it is normal Danish word order.

Compare:

  • Jeg kan ikke logge ind.
  • Hvis jeg glemmer min kode, kan jeg ikke logge ind.

In both cases, ikke is placed before the infinitive phrase logge ind.

What is logge ind? Is it one verb or two words?

Logge ind is a verb expression meaning to log in or to sign in.

It is written as two words:

  • at logge ind = to log in
  • jeg logger ind = I log in
  • jeg kan ikke logge ind = I cannot log in

This is similar to English, where log in is also often treated as a verb + particle combination.

You will often see forms like:

  • logger ind
  • loggede ind
  • har logget ind
Could I say indlogge instead of logge ind?

In normal modern Danish, logge ind is the natural and common expression.

You may sometimes encounter related forms such as indlogning for login/sign-in, but as a verb, learners should generally use:

  • at logge ind

So this sentence is idiomatic as it stands:

  • Hvis jeg glemmer min kode, kan jeg ikke logge ind.
Why is there no future form? In English, this could mean something in the future.

Danish often uses the present tense to talk about future or general situations, especially after hvis.

So:

  • Hvis jeg glemmer min kode, kan jeg ikke logge ind

can mean a general truth or a future possibility:

  • If I forget my password, I can’t log in.

Danish does have ways to express the future, but they are often unnecessary when the context is clear.

Is the comma after kode required?

Yes, in standard Danish writing, a comma is normally used between the if-clause and the main clause:

  • Hvis jeg glemmer min kode, kan jeg ikke logge ind.

This helps show the boundary between:

  • the condition: Hvis jeg glemmer min kode
  • the result: kan jeg ikke logge ind

Comma rules in Danish can vary a little depending on comma style taught or used, but in a sentence like this, the comma is standard and expected.

Is hvis always the right word for English if?

Not always. Danish has different words depending on the meaning of if.

Use hvis for a condition:

  • Hvis jeg glemmer min kode... = if I forget my password...

Use om for whether/if in indirect questions:

  • Jeg ved ikke, om jeg kan logge ind.
  • I don’t know whether/if I can log in.

So in this sentence, hvis is correct because it expresses a condition, not uncertainty between two possibilities.

How would the sentence look without the if-clause in front?

The main clause alone would be:

  • Jeg kan ikke logge ind.
  • I can’t log in.

When the conditional clause is added at the front, Danish changes the word order in the main clause:

  • Hvis jeg glemmer min kode, kan jeg ikke logge ind.

So this is a very useful contrast:

  • Jeg kan ikke logge ind.
  • Hvis jeg glemmer min kode, kan jeg ikke logge ind.

That shows the effect of the verb-second rule clearly.

AI Language TutorTry it ↗
What's the best way to learn Danish grammar?
Danish grammar becomes intuitive with practice. Focus on understanding the core patterns first — how sentences are structured, how verbs change form, and how words relate to each other. Our course breaks these concepts into small lessons so you can build understanding step by step.

Sign up free — start using our AI language tutor

Start learning Danish

Master Danish — from Hvis jeg glemmer min kode, kan jeg ikke logge ind to fluency

All course content and exercises are completely free — no paywalls, no trial periods, no signup needed.

  • Infinitely deep — unlimited vocabulary and grammar
  • Fast-paced — build complex sentences from the start
  • Unforgettable — efficient spaced repetition system
  • AI tutor to answer your grammar questions