Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/c20b4cddcda137f793459f43396f9da8 to your computer and use it in GitHub Desktop.
Save trycf/c20b4cddcda137f793459f43396f9da8 to your computer and use it in GitHub Desktop.
TryCF Gist
<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