Created
April 18, 2024 13:05
-
-
Save trycf/3e37867e7b69d72f8e24ffa6920c702a 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> | |
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