Created
July 9, 2025 08:33
-
-
Save trycf/93ffdc8f84a4ace787d3978601fc883c 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
<cfset ATTRIBUTES.HTMLMessage = "NetCommandoError - Fake Error 1: Login"> | |
<cfset variables.ignoreErrors = [ | |
["NetCommandoError", "Fake Error 1: Login"] | |
]> | |
<cfset variables.containsIgnoredError = variables.ignoreErrors.some(function(strings){ | |
return strings.every(function(str) { | |
return findNoCase(str, ATTRIBUTES.HTMLMessage) > 0; | |
}); | |
})> | |
<cfif variables.xxx > | |
<cfoutput>TRUE</cfoutput> | |
<cfelse> | |
<cfoutput>FALSE</cfoutput> | |
</cfif> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment