Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

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

);

Arguments

ACondition

  

The condition expression to evaluate

ALeft

  

The then-branch expression

ARight

  

The else-branch expression

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.


Documentation generated on: Dec 15 2025