Hug*_*anc -2 if-statement execution go
想象一下下面的一段代码:
if someBool && funcReturningABool() {
// code here...
}
Run Code Online (Sandbox Code Playgroud)
wheresomeBool
是一个布尔值并funcReturningABool
返回真或假。
如果someBool
等于false,funcReturningABool
仍然会被执行吗?