Skip to content

TIfOperation.Create

Create conditional operation with condition and branches

Declaration

Source position: fpexprpars.pp line 271

public 
constructor TIfOperation.Create(ACondition: TFPExprNode; 
                               ALeft: TFPExprNode; ARight: TFPExprNode);

Description

The Create constructor creates a new conditional operation with the specified condition expression, then-branch expression, and else-branch expression. It takes ownership of all three operand nodes.

The constructor properly initializes the conditional operation structure and establishes the relationship between the operation and its three operands (condition, then-branch, and else-branch), ensuring proper resource management.