Replies: 1 comment
-
See the discussion in #229. With EvalEx 3, you have the possibility of having sub-expressions with the EXPRESSION_NODE data type, e.g.: Expression expression = new Expression("a*b");
ASTNode subExpression = expression.createExpressionNode("4+3");
EvaluationValue result = expression
.with("a", 2)
.and("b", subExpression)
.evaluate();
System.out.println(result); // prints 14 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to be able to evaluate an expression that contains variables. The value of those variables may themselves be expression strings, e.g. I want the following to output "10":
As written this outputs "X+25".
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions