The greater than operator is a type of comparison operator which returns the boolean value <literal:true>
if the first number object's value is bigger than the second's, else it returns <literal:false>
.
Its token is named GREATER_THAN.
FDS[]
Example[]
If
Spike's age
is greater than
2
then
:
...
This executes the next part of code only if the variable Spike's age
is bigger than 2
.
This is equivalent to the following Java code:
if(Spike_s_age>10) { ...
See Also[]
Phrases (list) | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|