Implement "if" command, simplify generated code.