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

TIfOperation.Check

Validate the conditional operation for correctness

Declaration

Source position: fpexprpars.pp line 266

public procedure TIfOperation.Check; override;

Description

The Check method validates the conditional operation by checking that the condition expression evaluates to a boolean type and that the then-branch and else-branch expressions are present and valid.

The validation ensures that the condition is a boolean expression and that both branch expressions are compatible for the intended result type. It also validates all three operand expressions recursively.


Documentation generated on: Dec 15 2025