Code generated for if and complex ifs