Table of Contents

Class LessEqual

Namespace
Albatross.Expression.Infix
Assembly
Albatross.Expression.dll

Infix expression that performs less-than-or-equal comparison between two operands. Uses the "<=" operator with precedence 50.

public class LessEqual : ComparisonInfixOperation, IInfixExpression, IExpression, IToken, IHasPrecedence
Inheritance
LessEqual
Implements
Inherited Members
Extension Methods

Constructors

LessEqual()

Initializes a new instance of the LessEqual class with operator "<=" and precedence 50.

public LessEqual()

Methods

Interpret(int)

Interprets the comparison result to determine if the left operand is less than or equal to the right operand.

public override bool Interpret(int comparisonResult)

Parameters

comparisonResult int

The result from comparing the operands (-1, 0, or 1).

Returns

bool

true if the left operand is less than or equal to the right operand; otherwise, false.