Arguments
expression1, expression2 can be numbers, or strings.
Returns
Nothing.
Description
Operator (comparison): compares two expressions and determines whether expression1 is greater than or equal to expression2; if so, the operator returns true. If expression1 is less than expression2, the operator returns false.
String constants are converted to numeric unless both expressions are string constants.
Variables are assumed to be numeric. Possibly undergoing a conversion.
If string comparison is intended, use the ge operator.
Sample
The following examples illustrate true and false returns for both numeric and string comparisons.
31 >= 31;
// true
10 >= 31;
// false
"dog" >= "cat";
// true
d = "dog";
c = "cat";
c >= d;
// true, possibly not what is intended as both variables are converted to numeric (0). Use ge instead.