Hey <@U0BJDA84R>, looking at <https://helpx.adobe....
# documentation
a
Hey @saghosh, looking at https://helpx.adobe.com/coldfusion/developing-applications/the-cfml-programming-lang[…]xpressions-and-number-signs/expressions-developing-guide.html (Slack seems to be removing the fragment part of that URL for some reason... I mean the "boolean operators" section of that page). it says:
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:
Copy code
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
.
1