VALUE1
<=
VALUE2

The <= operator compares two values to see if the first value is less than or equal to the second value.


Parameters

This operator has two parameters:

value1 – The first numeric or text value.

value2 – The second numeric or text value.


Description

The <= operator compares two values to see if the first is smaller than or equal to the second. The two values can be either text or numeric, but they must both be the same type. The result is true if the first value is less than or equal to the second, and false if the first is greater than the second. Here are some examples:

34 <= 45 ☞ true
73 <= 34 ☞ false
56 <= 56 ☞ true
"abc" <= "xyz" ☞ true
"xyz" <= "abc" ☞ false
"abc" <= "abc" ☞ true
"123" <= 123 ☞ error

There are two alternate spellings available: islessthanorequalto and ≤ (Option-<).

598 islessthanorequalto 747 ☞ true
"abc" ≤ "def" ☞ true

Note: The Boolean values true and false are actually integer (numeric) values -1 and 0.


Error Messages

Cannot compare text with number. – Both parameters must be the same data type. If one is text and the other is numeric, the result is this error.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now allows alternate spelling