Adds small if statement in switch case.