Create conditional operation with condition and branches
Source position: fpexprpars.pp line 271
public constructor TIfOperation.Create( |
ACondition: TFPExprNode; |
ALeft: TFPExprNode; |
ARight: TFPExprNode |
); |
ACondition |
|
The condition expression to evaluate |
ALeft |
|
The then-branch expression |
ARight |
|
The else-branch expression |
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.