Skip to content

Instantly share code, notes, and snippets.

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 trycf/94923a9b2e3420fa0c1c6eeaf83bf7c4 to your computer and use it in GitHub Desktop.
Save trycf/94923a9b2e3420fa0c1c6eeaf83bf7c4 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
m = "First: %s, Second: %s";
a = [123,456];
writeOutput( m.format( m, a ) & "<br>");
writeOutput( m.format( m, a.map( ( t ) => t.toString() ) ) & "<br>");
writeOutput( m.format( m, ["123","456"] ) & "<br>");
/*
========================================================
All ACF versions as far back as 10 and as recent as 2021
========================================================
First: 123, Second: 456
First: 123, Second: 456
First: 123, Second: 456
===============================================
All Lucee/Railo versions available on trycf.com
===============================================
First: 123.0, Second: 456.0
First: 123.0, Second: 456.0
First: 123, Second: 456
*/
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment