LessThanOrEqual

Syntax

LessThanOrEqual(Expression1, Expression2)

Description

Returns a value of 1 if parameter 1 is less than or equal to parameter 2. Otherwise returns a value of zero.

Note: This function is included for backwards compatibility with earlier versions of WEAP. In the latest versions of WEAP you can now use the standard less than or equal to operator "<=" directly in your expressions. This helps to simplify your expressions and make them easier to understand.

Example

LessThanOrEqual (-1,3) = 1
LessThanOrEqual (3,1) = 0
LessThanOrEqual (1,1) = 1  
-1 <= 3  --> 1
3 <= 1  --> 0
1 <= 1  --> 1