Comparison (boolean) operators

Operator

Meaning

Description

==

Equality

Like many other popular languages, Experimentor™ uses a double equal sign to test if two things are equal.  Note that only the same data types can be equal.

So:

10 == 10        evaluates to true, but

10 == “10”        evaluates to false and

10 == 11        evaluates to false

!= or <>

Inequality

Just to be friendly, Experimentor™ supports two different types of in-equality operator.  This operator is used to test when two things are NOT the same (the logical opposite of the equality operator).

So:

10 != 10        evaluates to false, but

10 != “10”        evaluates to true and

10 != 11        evaluates to true

<

Less than

Your typical “jar half empty” kind of operator, this tests if the value on the left is less than the value on the right.

So:

10 < 10        evaluates to false, but

10 < 11        evaluates to true

>

Greater than

The opposite of the < operator, this tests if the value on the left is greater than the value on the right.

So:

10 > 10        evaluates to false, but

90 > 11        evaluates to true

<=

Less than or equal

Another pretty basic operator, this tests if the value on the left is less than or greater than the value on the right.

So:

10 <= 10        evaluates to true, and

10 <= 11        evaluates to true

>=

Greater than or equal

The opposite of the <= operator, this tests if the value on the left is greater than the value on the right.

So:

10 >= 10        evaluates to true, and

90 >= 11        evaluates to true