New to Telerik Document ProcessingStart a free 30-day trial

Evaluates whether the left operand is less than the right operand; implements the less-than (<) comparison operator.

Definition

Constructors

Initializes a new instance of the LessThanExpression class with the specified left and right operands.

C#
public LessThanExpression(RadExpression left, RadExpression right, Workbook workbook = null)
Parameters:leftRadExpression

The left.

rightRadExpression

The right.

workbookWorkbook

The workbook.

Methods

Compares two boolean expressions and returns true only if left is false and right is true.

C#
protected override bool CompareBooleanExpressions(BooleanExpression left, BooleanExpression right)
Parameters:leftBooleanExpression

The left.

rightBooleanExpression

The right.

Returns:

bool

Boolean result.

Overrides: ComparisonOperatorExpression.CompareBooleanExpressions(BooleanExpression, BooleanExpression)

Compares expressions of different types and returns true if the left type has lower precedence than the right type.

C#
protected override bool CompareDifferentTypeExpressions(ConstantExpression leftOperandValue, ConstantExpression rightOperandValue)
Parameters:leftOperandValueConstantExpression

The left operand value.

rightOperandValueConstantExpression

The right operand value.

Returns:

bool

Boolean result.

Overrides: ComparisonOperatorExpression.CompareDifferentTypeExpressions(ConstantExpression, ConstantExpression)

Compares two empty expressions and always returns false since empty values are equal.

C#
protected override bool CompareEmptyExpressions(EmptyExpression left, EmptyExpression right)
Parameters:leftEmptyExpression

The left.

rightEmptyExpression

The right.

Returns:

bool

Boolean result.

Overrides: ComparisonOperatorExpression.CompareEmptyExpressions(EmptyExpression, EmptyExpression)

Compares two number expressions and returns true if the left value is less than the right value.

C#
protected override bool CompareNumberExpressions(NumberExpression left, NumberExpression right)
Parameters:leftNumberExpression

The left.

rightNumberExpression

The right.

Returns:

bool

Boolean result.

Overrides: ComparisonOperatorExpression.CompareNumberExpressions(NumberExpression, NumberExpression)

Compares two string expressions and returns true if the left is alphabetically less than the right using case-insensitive comparison.

C#
protected override bool CompareStringExpressions(StringExpression left, StringExpression right)
Parameters:leftStringExpression

The left.

rightStringExpression

The right.

Returns:

bool

Boolean result.

Overrides: ComparisonOperatorExpression.CompareStringExpressions(StringExpression, StringExpression)

Properties

Gets metadata about the less-than operator including its precedence and associativity.

C#
public override OperatorInfo OperatorInfo { get; }
Property Value:

The operator info as OperatorInfo.

Overrides: OperatorExpression.OperatorInfo