Sign in Join
FPDoc Onlineexperiment

TIfOperation.HasAggregate function

Member of TIfOperationpublicIn unit fpExprPars

Check if conditional operation contains aggregates

Declaration

pascal
function HasAggregate: Boolean; override

Function result

Returns true if operation has aggregates

Description

The HasAggregate method checks whether any of the three operands (condition, then-branch, or else-branch) contain aggregate expressions. I t returns True if any operand has aggregate functionality.

The method is used by the expression parser to identify conditional operations that need aggregate handling and to ensure proper processing order for expressions with aggregate functions.

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