Any sufficiently advanced technology is equivalent to magic.

Top

Site Menu

Logical Operators

The operators $>$, $\geq$, $<$, $\leq$, $=$, and $\neq$ are called logical operators. They are used to compare two values and the output states whether your statement is TRUE or FALSE.
Click the Run button to evaluate these logical expressions.

# no pec # Strictly greater than 5 > 4 2 > 2 # Greater than or equal 5 >= 4 2 >= 2
Click the Run button to evaluate these logical expressions.

# no pec # Strictly less than 2 < 7 5 < 5 # Less than or equal 2 <= 7 5 <= 5
Click the Run button to evaluate these logical expressions.

# no pec # Equal 2 == 2 6 == 4 # Not equal 6 != 4 2 != 2

Video Tutorial: