Scratchpad

If you are new to Scratchpad, and want full access as a Scratchpad editor, create an account!
If you already have an account, log in and have fun!!

READ MORE

Scratchpad
Register
Advertisement

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.

Advertisement