added code generation for cond