Skip to content

TIfOperation.Condition

The condition expression of the if operation

Declaration

Source position: fpexprpars.pp line 305

public property Condition: TFPExprNode;

Description

The Condition property provides access to the boolean condition expression that determines which branch of the conditional operation will be evaluated. The condition must evaluate to a boolean result.

The condition is evaluated first, and based on its boolean result, either the then-branch or else-branch expression is evaluated to provide the final result of the conditional operation.