Comparisons
Comparison operators allow you to check the relationship between two values. Below are the supported operators, with a brief explanation and a practical usage example for each.
Currently supported comparison operators:
==
: Checks if two values are equal.
Example of use:
===
: Checks if two values are identical, meaning they are equal and of the same type.
Example of use:
!=
: Checks if two values are different.
Example of use:
<
: Checks if the value on the left is less than the value on the right.
Example of use:
>
: Checks if the value on the left is greater than the value on the right.
Example of use:
<=
: Checks if the value on the left is less than or equal to the value on the right.
Example of use:
>=
: Checks if the value on the left is greater than or equal to the value on the right.
Example of use: