If / Then / Else code generation