/** * Functions which will return the true value if the condition is true, false * value if not. * * @param condititon the condition. * @param trueValue the true value. * @param falseValue the false value. * @return a String. */ public static Object condition( String condititon, Object trueValue, Object falseValue ) { return ExpressionUtils.isTrue( condititon, null ) ? trueValue : falseValue; }