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

TFPBinaryXOrOperation

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

Internally used class for binary XOR logical operation

Declaration

Source position: fpexprpars.pp line 179

type TFPBinaryXOrOperation = class(TFPBooleanOperation)

public

  function AsString; override;

  

Get string representation of XOR operation

end;

Inheritance

TFPBinaryXOrOperation

  

Internally used class for binary XOR 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 TFPBinaryXOrOperation class implements the logical XOR (exclusive OR) operation between two boolean operands. It extends TFPBooleanOperation to provide XOR-specific functionality that evaluates to True when exactly one operand is True.

The XOR operation returns True only when the operands have different boolean values (True XOR False or False XOR True), and returns False when both operands have the same value (True XOR True or False XOR False).

Unlike AND and OR operations, XOR requires evaluation of both operands since both values are needed to determine the result.

See also

TFPExprNode

  

Class for representing nodes in expression trees


Documentation generated on: Dec 15 2025