| Notes |
There is no difference between the two forms, || and or.
UserTalk employs "short-circuit" evaluation of boolean expressions. That means that if expression1 of an or operation evaluates to true, expression2 will not be evaluated, since it can already be determined that the result of the operation will be true.
So in example #2 above, the call to file.type will never be made if file.isFolder returns true.
|