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"); |
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"; | |
| if (a) dump("a == true => yes"); | |
| if (b) dump("b == true => yes"); | |
| if (c) dump("c == true => yes"); | |
| if (d) dump("d == true => yes"); |
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
| <cfset str = "###### G5624"> | |
| <cfdump var="#left(str,6)#"> |
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 = {b: 2}; | |
| a.a = a.a ?: (a.b - 1); | |
| a.a = a.a ?: (a.b - 2); | |
| a.a = a.a ?: (a.b - 3); | |
| writeDump(a); |
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> | |
| writeDump( | |
| LSIsDate( "2024年1月14日", "en-US" ) | |
| ); | |
| </cfscript> |
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> | |
| function foo(forceError = false) { | |
| try { | |
| if (forceError) { | |
| throw('Oopsie! An Error') | |
| } | |
| return [{a: 'test'}, {}] | |
| } catch(any e) { | |
| return [{}, e] |
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> | |
| thisTag = { executionMode = "start" }; | |
| result = isDefined( "thisTag.executionMode" ); | |
| writeDump( result ) | |
| </cfscript> |
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
| <cfset a= 10> | |
| <cfdump var="#a#"> |
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
| <cfset variables.message = "Error 1" | |
| <cfset variables.ignoreErrors = [ | |
| ["Invalid terminal"] | |
| ]> | |
| <cfset variables.containsIgnoredError = variables.ignoreErrors.some(function(strings){ | |
| return strings.every(function(str) { | |
| return findNoCase(str, variables.message) > 0; |
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> | |
| passencrypt = createobject("java", "lucee.runtime.crypt.BlowfishEasy").init("sdfsdfs") | |
| x=passencrypt.decryptstring('34204f91ccc44008522bfb0fb0a0f00e603db5ed95fcc3c962b82160a8ddce70946741ed56335ce2') | |
| dump(x) | |
| x=passencrypt.encryptstring('password_test') | |
| dump(x) | |
| </cfscript> |
NewerOlder