< | ||||||||||
Type | operator | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Summary | Compares two values and returns true if the first value is less than the second value, false otherwise. | |||||||||
Introduced | 1.0 | |||||||||
OS | mac, windows, linux, ios, android | |||||||||
Platforms | desktop, server, mobile | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Related | Keyword: string, character, characters Operator: <>, <=, > Function: min, value Glossary: property, ASCII, value, return, operator, string, character set, case-sensitive | |||||||||
Description | Use the < (less than) operator to compare two numbers or to compare the alphabetical order of two strings. 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 "a" < "b" and "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, "ab" < "abc". If the two values are equal, firstValue secondValue evaluates to false. If the caseSensitive property is true, the comparison between two strings treats uppercase letters as coming before lowercase letters, so "A" < "a". If the caseSensitive property is false, the comparison is not case-sensitive, so "a" is considered equivalent to "A". | |||||||||
Tags | math |