Sign in Join
FPDoc Onlineexperiment

TIfOperation.Check procedure

Member of TIfOperationpublicIn unit fpExprPars

Validate the conditional operation for correctness

Declaration

pascal
procedure 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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.