It seems that it is just conditionals in general. A single one will do it, if I understood correctly.