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

TFPBooleanResultOperation

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Internally used class for operations that result in boolean values

Declaration

Source position: fpexprpars.pp line 188

type TFPBooleanResultOperation = class(TFPBinaryOperation)

public

  procedure Check; override;

  

Validate the boolean result operation

  function NodeType; override;

  

Get the result type for boolean operations

end;

Inheritance

TFPBooleanResultOperation

  

Internally used class for operations that result in boolean values

|

TFPBinaryOperation

  

Internally used class for binary operations with left and right operands

|

TFPExprNode

  

Class for representing nodes in expression trees

|

TObject

Description

The TFPBooleanResultOperation class serves as the base class for binary operations that produce boolean results but may accept non-boolean operands. It extends TFPBinaryOperation to provide the framework for comparison and relational operations.

Unlike TFPBooleanOperation which requires boolean operands, this class allows various operand types while ensuring the result is always boolean. This makes it suitable for comparison operations like equality, less than, greater than, etc.

The class provides the infrastructure for operations that compare values of compatible types and return boolean results indicating the relationship between the operands.

This class is used internally by the TFPExpressionParser class to construct an AST (Abstract Syntax Tree). There is normally no need for you to use or instantiate this class directly.


Documentation generated on: Dec 15 2025