if / else with priorities