You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "ammachado (via GitHub)" <gi...@apache.org> on 2024/07/22 13:44:41 UTC

Re: [PR] iif expression (ternary) for (c)simple language [camel]

ammachado commented on code in PR #14888:
URL: https://github.com/apache/camel/pull/14888#discussion_r1686580719


##########
core/camel-core-languages/src/main/java/org/apache/camel/language/simple/SimpleExpressionBuilder.java:
##########
@@ -1148,6 +1148,18 @@ public String toString() {
         };
     }
 
+    /**
+     * Returns the expression for the exchange's exception invoking methods defined in a simple OGNL notation
+     *
+     * @param  predicate
+     * @param  trueExpression
+     * @param  falseExpression
+     * @return
+     */
+    public static Expression iifExpression(final boolean predicate, final Object trueExpression, final Object falseExpression) {
+        return null;

Review Comment:
   Is this really required?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org