Added if statement codegen