Questions & Answers about Als wir gestern im Innenhof standen, erzählte der Guide eine Geschichte über einen mutigen Ritter.
Because "Als wir gestern im Innenhof standen" is a subordinate clause (Nebensatz) introduced by the subordinating conjunction als.
In German:
- In main clauses, the finite verb is in second position:
Wir standen im Innenhof. – We were standing in the courtyard. - In subordinate clauses, the finite verb goes to the end:
Als wir im Innenhof standen, ... – When we were standing in the courtyard, ...
So als pushes the verb standen to the end of its clause.
No, wenn would sound wrong here.
- als is used for:
- single events or situations in the past
→ Als wir gestern im Innenhof standen, ... = one specific time yesterday.
- single events or situations in the past
- wenn is used for:
- repeated events in the past, present, or future
→ Wenn wir im Innenhof standen, hörten wir immer Musik. (Whenever we were standing in the courtyard, we always heard music.) - conditions (if/whenever):
→ Wenn wir im Innenhof stehen, frieren wir. (If/Whenever we stand in the courtyard, we get cold.)
- repeated events in the past, present, or future
So because this refers to one specific time yesterday, als is correct and wenn is not.