added codegen for and, or logical exprs