Skip to content

TFPLessThanEqualOperation

Internally used class for less-than-or-equal comparison operations

Declaration

Source position: fpexprpars.pp line 241

type

  TFPLessThanEqualOperation = class(TFPGreaterThanOperation)
  public
    function AsString : AnsiString;
  end;

Description

The TFPLessThanEqualOperation class implements the less-than-or-equal comparison operation (<=) between two operands of compatible types. It extends TFPOrderingOperation to provide less-than-or-equal-specific comparison logic.

The operation compares two values and returns True if the left operand is less than or equal to the right operand, False otherwise. It handles different data types appropriately, using numeric comparison for numbers, lexicographic comparison for strings, and chronological comparison for date/time values.

This operation combines both equality and less-than testing, returning True when either condition is satisfied.

Methods

Member Visibility Description
AsString public Get string representation of less-than-equal operation
See all Methods

See also

Name Description
TFPExprNode Class for representing nodes in expression trees