Skip to content

Instantly share code, notes, and snippets.

Created May 29, 2015 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/717ea2e12e318d6ae18e to your computer and use it in GitHub Desktop.
Save anonymous/717ea2e12e318d6ae18e to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
a = 0;
s = "some string ";
a += 2; // equivalent to a=a+2
writeDump([a]);
a -= 3; // equivalent to a=a-3
writeDump([a]);
a *= 4; // equivalent to a=a*4
writeDump([a]);
a /= 5; // equivalent to a=a/5
writeDump([a]);
a %= 6; // equivalent to a=a%6
writeDump([a]);
s &= "a"; // equivalent to s = s & "a"
writeDump([s]);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment