Scripter Javascript Tutorial
javascriptmusiclogicscripterbookexcerpttutorial30 ||
logical
or
The ||
(double pipe) comparison will be true when
any of the comparisons are true. Another way to read the
||
comparison is that it will find the first true
result and return true.
60 == 60 || 72 == 72 // true || true = true
60 == 60 || 60 == 72 // true || false = true
60 == 72 || 60 == 60 // false || true = true
60 == 72 || 60 == 59 // false || false = false