Clarified the conditions-example
This commit is contained in:
parent
6b76cd07e8
commit
45da02b438
@ -127,10 +127,10 @@ Operators for conditions are
|
|||||||
|
|
||||||
Any of these can be mixed with any of them, and can be wrapped in parenthesis to priorisize which must be tested first. Examples:
|
Any of these can be mixed with any of them, and can be wrapped in parenthesis to priorisize which must be tested first. Examples:
|
||||||
```
|
```
|
||||||
let first = true;
|
let first = true; // true
|
||||||
let second = first == true;
|
let second = first == false; // false
|
||||||
let third = second && first;
|
let third = second && first; // false
|
||||||
let fourth = "otus" == "test" || (first ^ second);
|
let fourth = "otus" == "test" || (first ^ second); // true
|
||||||
```
|
```
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
Loading…
Reference in New Issue
Block a user