Created
May 29, 2015 23:35
-
-
Save anonymous/da4ec1cfa62aa134ca4e to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// NB: only one of trueExpression or falseExpression is evaluated: | |
a = 1; | |
b = 1; | |
c = false ? ++a : ++b; // a=1, b=2, c=2 | |
writeDump({ "a":a, "b":b, "c":c }); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment