Skip to content

Nested ternary throws exception #167

Open
@bjn

Description

@bjn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions