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:
|
||||
```
|
||||
let first = true;
|
||||
let second = first == true;
|
||||
let third = second && first;
|
||||
let fourth = "otus" == "test" || (first ^ second);
|
||||
let first = true; // true
|
||||
let second = first == false; // false
|
||||
let third = second && first; // false
|
||||
let fourth = "otus" == "test" || (first ^ second); // true
|
||||
```
|
||||
|
||||
## Values
|
||||
|
Loading…
Reference in New Issue
Block a user