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

TFPBinaryAndOperation

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

Internally used class for binary AND logical operation

Declaration

Source position: fpexprpars.pp line 161

type TFPBinaryAndOperation = class(TFPBooleanOperation)

public

  function AsString; override;

  

Get string representation of AND operation

end;

Inheritance

TFPBinaryAndOperation

  

Internally used class for binary AND logical operation

|

TFPBooleanOperation

  

Internally used class for boolean operations in expressions

|

TFPBinaryOperation

  

Internally used class for binary operations with left and right operands

|

TFPExprNode

  

Class for representing nodes in expression trees

|

TObject

Description

The TFPBinaryAndOperation class implements the logical AND operation between two boolean operands. It extends TFPBooleanOperation to provide AND-specific functionality that evaluates to True only when both operands are True.

The operation uses short-circuit evaluation, meaning that if the left operand is False, the right operand is not evaluated since the result is already determined to be False. This optimization improves performance and can prevent evaluation of potentially expensive or problematic right 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.

See also

TFPExprNode

  

Class for representing nodes in expression trees


Documentation generated on: Dec 15 2025