Clarified the conditions-example

This commit is contained in:
Teascade 2017-08-26 00:38:52 +00:00
parent 6b76cd07e8
commit 45da02b438
1 changed files with 4 additions and 4 deletions

View File

@ -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