Questions & Answers about Als ich gestern müde war, likte ich automatisch alles Mögliche, ohne mich zu konzentrieren.
Als ich gestern müde war is a subordinate clause. In German subordinate clauses introduced by words like als, weil, dass, wenn, the conjugated verb goes to the end.
So:
- Main clause: Ich war gestern müde. (verb in second position)
- Subordinate clause: … als ich gestern müde war. (verb war at the end)
In your sentence, that whole subordinate clause comes first:
- Als ich gestern müde war, (subordinate clause, verb at the end)
- likte ich automatisch … (main clause, verb in second position)
In the past, German distinguishes:
als = one specific time or episode in the past
- Als ich gestern müde war, …
One particular situation yesterday.
- Als ich gestern müde war, …
wenn = whenever, repeatedly, or in general
- Wenn ich müde war, likte ich immer alles Mögliche.
Whenever I was tired (repeated habit).
- Wenn ich müde war, likte ich immer alles Mögliche.
Here, you are talking about a specific occasion yesterday, so als is the correct choice.