Created
July 9, 2025 08:33
-
-
Save trycf/ba09f7b14dedf35cf40c08b75f60c1a8 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.isMatchingIgnoreError = 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