上例的输出类似于:
bool(true)
bool(false)
bool(false)
bool(true)
Another example that might help.
returns the userdata email address, but this
returns false.
The reason is that the two types of ands have a different order of precedence. "&&" is higher than "AND", and the "?:" operator just happens to come between the two. Also, since "||" (or) is actually higher than "AND," you should never mix &&s and ||s with ANDs and ORs without paretheses.
For example: