expression1 >= expression2
Compares two expressions and determines whether expression1 is greater than or equal to expression2 (true) or expression1 is less than expression2 (false).
expression1 : Object - A string, integer, or floating-point number.
expression2 : Object - A string, integer, or floating-point number.
Boolean - The Boolean result of the comparison.
In the following example, the greater than or equal to (>=) operator is used to determine whether the current hour is greater than or equal to 12:
if (new Date().getHours() >= 12) {
trace("good afternoon");
} else {
trace("good morning");
}