Lowering for if statements