ExpressionEvaluator icon indicating copy to clipboard operation
ExpressionEvaluator copied to clipboard

Nested ternary throws exception

Open bjn opened this issue 4 months ago • 0 comments

The formula 1 == 2 ? 3 == 4 ? 1 : 0 : 0

throws exception

System.NotSupportedException : Failed to evaluate expression for '1 == 2 ? 3 == 4 ? 1 : 0 : 0' ----> CodingSeb.ExpressionEvaluator.ExpressionEvaluatorSyntaxErrorException : Invalid character [58::]

This works with paranthesis 1 == 2 ? (3 == 4 ? 1 : 0) : 0.

bjn avatar Jun 12 '25 13:06 bjn