Questions & Answers about Hvis min bror mister sin billet, må han købe en ny.
Hvis means if and introduces a condition that may or may not happen: Hvis min bror mister sin billet... = If my brother loses his ticket...
Når is closer to when in the sense of whenever / when it happens (expected or habitual). So Når min bror mister sin billet... would suggest it’s something that (regularly) happens or is expected to happen.
Danish is a V2 language in main clauses: the finite verb is typically in position 2. When you front a subordinate clause like Hvis min bror mister sin billet, it takes position 1 in the main clause, so the main verb comes right after it:
Hvis ... , må han ...
So after the comma, må appears immediately.
In Danish it’s standard to put a comma between a subordinate clause and the following main clause, especially when the subordinate clause comes first:
Hvis ... , må ...
Some writing styles use slightly different comma rules, but this comma is very common and considered correct.