IfNode constructor
Constructs an if statement with condition, then-block, and optional else-block.
Parameters:
condition
: Expression that evaluates to the condition (0 = false, non-zero = true)thenBlock
: Block of statements to execute if condition is trueelseBlock
: Optional block of statements to execute if condition is false
Implementation
IfNode(Node<dynamic, LangVal> condition, BlockNode thenBlock,
[Node? elseBlock])
: super(null, [condition, thenBlock, if (elseBlock != null) elseBlock]);