Questions & Answers about Det afhænger af vejret, om vi spiser aftensmad i haven.
In this sentence, det is a formal subject or dummy subject. Danish often uses det at the beginning of a clause when the real content comes later.
So in:
Det afhænger af vejret, om vi spiser aftensmad i haven.
the real thing that depends on the weather is the whole clause:
om vi spiser aftensmad i haven
A more literal way to think of it is:
It depends on the weather whether we eat dinner in the garden.
English does something very similar with it.
At afhænge af is a fixed verb expression meaning to depend on.
- afhænger = depends
- af = on / on the basis of
So:
- Det afhænger af vejret = It depends on the weather
You should learn at afhænge af as a unit, because the preposition af belongs naturally with the verb.