Not understanding


#1

When learning how to use ¨and¨ , it says that true && true would print true, but if it says false && false, will print false. Why it shouldn’t print true?


#2

AND is said to short-circuit on false. What this means is that there cannot be any false operands in an && expression.

 &&     true    false
      -----------------
true  | true  | false |
      -----------------
false | false | false |
      -----------------

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.