Skip to content

TernaryNode Class ​

Definition ​

Represents a conditional (ternary) expression: condition ? trueBranch : falseBranch.

  • Namespace: JASE.Expressions.Models
  • Assembly: JASE.Expressions.dll

Properties ​

NameDescription
ConditionGets the condition expression that determines which branch is evaluated.
FalseBranchGets the expression evaluated if Condition evaluates to false.
KindExpresses the Kind of AstNode object
TrueBranchGets the expression evaluated if Condition evaluates to true.

Remarks ​

The parser constructs this node when encountering the ?: operator. Semantic evaluation is performed by AstEvaluator.