Table of Contents

Class LessThan

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

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

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

Constructors

LessThan()

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

public LessThan()

Methods

Interpret(int)

Interprets the comparison result to determine if the left operand is less than 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 the right operand; otherwise, false.