Skip to content

Commit 77073cb

Browse files
asaydmontegoulding
authored andcommitted
[[ Documentation ]] Fixes to greater-than-or-equals.lcdc
- Several cases of >= were incorrectly expressed as =. - Fixed malformed link in Description. - Value function removed from references. - Value2 was not marked as param in syntax. - Replaced html entities with character > where possible. (cherry picked from commit 82ffb79)
1 parent 26e2390 commit 77073cb

1 file changed

Lines changed: 31 additions & 20 deletions

File tree

docs/dictionary/operator/greater-than-or-equals.lcdoc

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ Name: >=
22

33
Type: operator
44

5-
Syntax: <value1> &gt;= value2
5+
Syntax: <value1> >= <value2>
66

77
Summary:
8-
Compares two <value(glossary)|values> and <return|returns> true if the
9-
first <value(function)> is greater than or equal to the second
10-
<value(function)>, false otherwise.
8+
Compares two <value|values> and <return|returns> true if the
9+
first <value> is greater than or equal to the second
10+
<value>, false otherwise.
1111

1212
Introduced: 1.0
1313

@@ -16,43 +16,54 @@ OS: mac, windows, linux, ios, android
1616
Platforms: desktop, server, mobile
1717

1818
Example:
19-
22 = 23
19+
put 22 >= 23
20+
-- evaluates to false
2021

2122
Example:
22-
myValue = 0
23+
local theCount
24+
if theCount >= 0 then
25+
go next card
26+
end if
2327

2428
Parameters:
2529
value1:
2630
The operands value1 and value2 can be numbers, literal strings of
27-
characters (delimited with double quotes), or any sources of value.
31+
characters (<delimit|delimited> with double quotes), or any sources
32+
of <value>.
33+
34+
value2:
35+
The operands value1 and value2 can be numbers, literal strings of
36+
characters (<delimit|delimited> with double quotes), or any sources
37+
of <value>.
2838

2939
Description:
30-
Use the = (greater than or equal to) <operator> to compare two numbers
40+
Use the >= (greater than or equal to) <operator> to compare two numbers
3141
or to compare the alphabetical order of two <string|strings>.
3242

33-
When comparing strings, the = <operator> compares the two <value|values>
43+
When comparing strings, the >= <operator> compares the two <value|values>
3444
<character> by <character>, using the <ASCII|ASCII value> of each
3545
<character>. For example, "z" comes after "a" in the <ASCII> <character
3646
set>, so the following are all true:
3747

38-
"z" ="z"
39-
"z" = "a"
40-
"zz" = "za"
48+
"z" >="z"
49+
"z" >= "a"
50+
"zz" >= "za"
4151

4252

4353
If the strings are of different lengths, so that the trailing characters
4454
in one string are compared to missing characters in the other, the
45-
missing characters are considered to have lower value than any
46-
character. For example, "abc" = "ab".
55+
missing characters are considered to have lower <value> than any
56+
character. For example, "abc" >= "ab".
4757

48-
If the <caseSensitive> <a> property</a> is true, the comparison between
58+
If the <caseSensitive> <property> is true, the comparison between
4959
two <string|strings> treats uppercase letters as coming before lowercase
5060
letters. If the <caseSensitive> <property> is false, the comparison is
5161
not <case-sensitive>, so a is considered equivalent to A.
5262

53-
References: max (function), value (function), property (glossary),
54-
ASCII (glossary), value (glossary), return (glossary),
55-
operator (glossary), string (glossary), character set (glossary),
56-
case-sensitive (glossary), character (keyword), &lt;= (operator),
57-
&gt; (operator), caseSensitive (property)
63+
References: &gt; (operator), &lt;= (operator), ASCII (glossary),
64+
case-sensitive (glossary), caseSensitive (property),
65+
character (keyword), character set (glossary), delimit (glossary),
66+
double quote (glossary), max (function), operator (glossary),
67+
property (glossary), return (glossary), string (glossary),
68+
value (glossary)
5869

0 commit comments

Comments
 (0)