FiM++ Wiki

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.


Icon Info.png
See Also: Infix notation

<value:number><whitespace><comparator>[more/greater] than<whitespace><value:number>


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[]

Icon Info.png
This article is a stub. You can help FiM++ Wiki by expanding it.