Adam Cameron
OR or ||
Return True if any of the arguments is True; return False otherwise. For example, True OR False is True, but False OR False is False.This does not match the actual behaviour of CF's CFML, eg:
20 OR 30 // the resultant value is 20
It doesn't return specifically true
or false
. it returns the value of the first operand that determines the result of the overall expression (ie: it short-circuits if it can).
The docs for AND
have a similar shortcoming.
Can you pls get the docs updated to:
a) explain the short-circuiting
b) correct the detail that the expression returns the operand value; not simply true
or false
.