Declaration¶
Source position: fpexprpars.pp line 179
type
TFPBinaryXOrOperation = class(TFPBooleanOperation)
public
function AsString : AnsiString;
end;
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.
Methods¶
| Member | Visibility | Description |
|---|---|---|
| AsString | public | Get string representation of XOR operation |
See also¶
| Name | Description |
|---|---|
| TFPExprNode | Class for representing nodes in expression trees |