Breakdown of Vergeet hy die kode, kan hy die gasheer vra.
die
the
hy
he
kan
can, to be able to
vra
to ask / to charge (a price)
Questions & Answers about Vergeet hy die kode, kan hy die gasheer vra.
Why does the sentence start with the verb Vergeet, and how do we know it means "if" rather than asking a question?
In Afrikaans, you can form an "if" clause without as (if) simply by putting the verb first: Vergeet hy die kode... (If he forgets the code...). On its own, Vergeet hy die kode? would be a question, but here the comma and the following clause (...kan hy die gasheer vra) make it clear that the first part is a condition. In speech, your intonation stays up slightly at the comma to signal that the main part of the sentence is still coming.
How would the word order change if I used as at the beginning of the sentence?
If you include as, the verb vergeet moves to the end of the first clause: As hy die kode vergeet, kan hy die gasheer vra. Dropping as pulls the verb right to the front (Vergeet hy die kode...), which is a neat, concise way to state a condition. Notice that the second half of the sentence stays the same either way.
Why is it kan hy and not hy kan after the comma?
In an Afrikaans main clause, the working verb belongs in the second position. Because the entire conditional clause (Vergeet hy die kode) fills the first position of the sentence, the very next word after the comma has to be the main clause's verb (kan), with the subject (hy) right after it: ...kan hy die gasheer vra. The main verb vra (ask) then goes to the end of the sentence because it is paired with the modal verb kan.
How could I make this condition sound more tentative, like "Should he forget the code..." in English?