does the condition after && always get evaluated

后端 未结 6 721
予麋鹿
予麋鹿 2020-12-03 02:48

I have this if statement that tests for the 2 conditions below. The second one is a function goodToGo() so I want to call it unless the first condi

6条回答
  •  [愿得一人]
    2020-12-03 03:10

    the second condition will only be checked if and only if first one is true, hence both statements are equivalent.

提交回复
热议问题