Validate the conditional operation for correctness
Source position: fpexprpars.pp line 266
public procedure TIfOperation.Check; override; |
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.