Scripter Javascript Tutorial
javascriptmusiclogicscripterbookexcerpttutorial29 &&
logical
and
The &&
comparison requires all
comparisons to be true for it to be true. Another way to read the
&&
comparison is that it will find the first
false result.
60 == 60 && 72 == 72 // true && true = true
60 == 60 && 60 == 72 // true && false = false
60 == 72 && 60 == 60 // false && true = false
60 == 72 && 60 == 59 // false && false = false