| Notes |
There is no difference between the two forms, && and and.
UserTalk employs "short-circuit" evaluation of boolean expressions. In other words, if expression1 of an and operation evaluates to false, expression2 will not be evaluated, since it can already be determined that the result of the operation will be
false. In example #2 above, the call to file.type will never be made if file.exists returns false (i.e., the file doesn't exist).
|