Created
November 28, 2025 01:37
-
-
Save trycf/3fcc8ef9c67024b947a0266cd9e3898f to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or 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> | |
| a = 1; | |
| b = "1"; | |
| c = true; | |
| d = "true"; | |
| e = "yes"; | |
| if (a) dump("a == true? => yes"); | |
| if (b) dump("b == true? => yes"); | |
| if (c) dump("c == true? => yes"); | |
| if (d) dump("d == true? => yes"); | |
| if (e) dump("e == true? => yes"); | |
| writeoutput("<hr>"); | |
| if (a eq 1) dump("a == 1? => yes"); | |
| if (b eq 1) dump("b == 1? => yes"); | |
| if (c eq 1) dump("c == 1? => yes"); | |
| if (d eq 1) dump("d == 1? => yes"); | |
| if (e eq 1) dump("e == 1? => yes"); | |
| writeoutput("<hr>"); | |
| if (a === 1) dump("a === 1? => yes"); else dump("a === 1? => no"); | |
| if (b === 1) dump("b === 1? => yes"); else dump("b === 1? => no"); | |
| if (c === 1) dump("c === 1? => yes"); else dump("c === 1? => no"); | |
| if (d === 1) dump("d === 1? => yes"); else dump("d === 1? => no"); | |
| if (e === 1) dump("e === 1? => yes"); else dump("e === 1? => no"); | |
| </cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment