added OCNG support for ternary operator