Simplified "if" codegen