Fandom

Scratchpad

Conditional Expressions

215,919pages on
this wiki
Add New Page
Discuss this page0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Integers

Integers can be compared using the standard comparator operators.

==

equal to
!=
not equal to
<
strictly less than
<=
less than or equal to
>
strictly greater than
>=
greater than or equal to

Strings

Strings can be compared using the same operators.

The == and != comparators check if a whole string is exactly the same as another one. The < comparator checks if one string comes before another. The following all return true.

 apple < banana
 apple < Apple
 _apple < apple

These would all return false for the > operator.

Also on Fandom

Random wikia