Comparison operators
- Last UpdatedApr 24, 2024
- 1 minute read
Comparison operators compare two operands of the same type.
|
Operator |
Description |
Supported types |
|---|---|---|
|
== |
Checks whether the two operators have the same value. |
bool, int, double, string, vector2, vector3, vector4, quaternion, matrix, List, Json |
|
!= |
Checks whether the two operators have different values. |
bool, int, double, string, vector2, vector3, vector4, quaternion, matrix, List, Dictionary, Json |
|
> |
Checks whether the left operator is greater than the right one. |
int, double, |
|
< |
Checks whether the left operator is lower than the right one. |
int, double, |
|
>= |
Checks whether the left operator is greater or equal than the right one. |
int, double, |
|
<= |
Checks whether the left operator is lower or equal than the right one. |
int, double, |