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/3e37867e7b69d72f8e24ffa6920c702a to your computer and use it in GitHub Desktop.
Save trycf/3e37867e7b69d72f8e24ffa6920c702a to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
if(true){
writeoutput("true is true");
} else {
writeoutput("true is not true");
}
if(false){
writeoutput("false is true");
} else {
writeoutput("false is not true");
}
if(0){
writeoutput(" - 0 is true");
} else {
writeoutput(" - 0 is not true");
}
if(1){
writeoutput(" - 1 is true");
} else {
writeoutput(" - 1 is not true");
}
if("true"){
writeoutput(' - "true" is true');
} else {
writeoutput(' - "true" is not true');
}
if("false"){
writeoutput(' - "false" is true');
} else {
writeoutput(' - "false" is not true');
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment