Table of contents:
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
...
Table of all available operators
Оператор | Описание | Пример использования |
---|---|---|
< | Less | 1<2 |
> | More | 5>3 |
<= | Less or equal | 7 <= 10 |
>= | More or equal | 8 >= 8 |
== | Equally | "Hello" == "Hello" |
!= | Not equal | “Hello”! = “Bye” |
&& | Logical "AND" | “Hello”! = “Bye” && 5>3 |
|| | Logical "OR" | "Day" == "Night"|| 2 > 1 |
...
Usage example
In practice, comparison is used very widely. For example, we need to check whether at least some text has loaded on the page or not.
...