<=
| Syntax |
expression1 <= expression2 expression1 ² expression2
|
| Action |
This comparison operator yields the boolean value true if the value of expression1 is less (smaller) than or equal to the value of expression2.
|
| Examples |
file.size ("myFile") <= 1000000 » true
This expression evaluates to true if the file contains one million or fewer characters.
The result is true, because the two expressions are equal. |
| Notes |
There is no difference between the two forms, <= and ². String comparison is done according to the ASCII sequence. This yields alphabetical results. Lowercase characters sort after all uppercase characters, that is, "A" < "Z" < "a" < "z". UserTalk employs automatic type coercion when evaluating arithmetic and comparative operations; the two expressions need not be of the same type to be compared. The ² symbol can be entered at the keyboard with Option-<
|
| See Also |
>
|