Error getting tags :
error 404Error getting tags :
error 404 <= | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
<=
Basics
Expander triangle
Type
Operator
Syntax

value1 <= value2

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Compares two values and returns true if the first value is less than or equal to the second value, false otherwise.
Examples

22 <= 21
3 <= -3
"a" <= "a"

Additional Comments
Expander triangle

Use the <= (less than or equal to) operator to compare two numbers or to compare the alphabetical order of two strings.

Parameters:

The operands value1 and value2 can be numbers, literal strings of characters (delimited with double quotes), or any sources of value.

Comments:

When comparing strings, the <= operator compares the two values character by character, using the ASCII value of each character. For example, "a" comes before "b" in the ASCII character set, so the following are all true:

"a" <= "a"

"a" <= "b"

"ab" <= "bb"

If the strings are of different lengths, so that the trailing characters in one string are compared to missing characters in the other, the missing characters are considered to have lower value than any character. For example, "abc" <= "ab" is false.

If the caseSensitive property is true, the comparison between two strings treats uppercase letters as coming before lowercase letters. If the caseSensitive property is false, the comparison is not case-sensitive, so "a" is considered equivalent to "A".

Cross-platform caution! The synonym can be used only on Mac OS and OS X systems. If you use a script containing the character on a Windows or Unix system, a script error may result. To ensure cross-platform compatibility, use the synonym <= instead.

User Comments
Expander triangle
User thumbnail
Craig Newman
StarStarStarStarStar
Apr 16, 2009
Note that the condensed symbol "" (ASCII 178) though supported on the Macintosh, should NOT be used, as it will break under Windows and Linux.