Created
February 28, 2023 15:45
-
-
Save trycf/94923a9b2e3420fa0c1c6eeaf83bf7c4 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> | |
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