This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathless-than.lcdoc
More file actions
65 lines (45 loc) · 1.96 KB
/
less-than.lcdoc
File metadata and controls
65 lines (45 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Name: <
Type: operator
Syntax: <value1> < <value2>
Summary:
Compares two <value(glossary)|values> and <return|returns> true if the
first <value(function)> is less than the second <value(function)>, false
otherwise.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
3 < 4 -- evaluates to true
Example:
7 < (2 + 1) -- evaluates to false
Example:
if thisVariable < 0 then beep
Parameters:
value1:
The operands value1 and value2 can be numbers, literal strings of
characters (delimited with double quotes), or any sources of value.
value2:
Description:
Use the <<> (less than) <operator> to compare two numbers or to
compare the alphabetical order of two <string(glossary)|strings>.
When comparing strings, the <operator> compares the two
<value(glossary)|values> <character> by <character>, using the
<ASCII|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(keyword)> are compared to missing <characters> in the
other, the missing <characters> are considered to have lower
<value(function)> 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
<string(glossary)|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".
References: min (function), value (function), property (glossary),
ASCII (glossary), value (glossary), return (glossary),
operator (glossary), string (glossary), character set (glossary),
case-sensitive (glossary), string (keyword), character (keyword),
characters (keyword), <> (operator), <= (operator),
> (operator)
Tags: math