The zero conditional is used to talk about real situations in the present or that always happen, both clauses of the conditional must be in the present simple and both "if" and "when" can be used and its meaning does not change.
when / Stan / finish / his homework early / he / play / video games