public static Object _if ( EvaluationContext ctx , Object logicalTest , @ IntegerDefault ( 0 ) Object valueIfTrue , @ BooleanDefault ( false ) Object valueIfFalse ) { return Conversions . toBoolean ( logicalTest , ctx ) ? valueIfTrue : valueIfFalse ; }
Returns one value if the condition evaluates to TRUE and another value if it evaluates to FALSE