Skip to content

Instantly share code, notes, and snippets.

@CreativeNotice
Created August 23, 2012 19:50
Show Gist options
  • Save CreativeNotice/3440828 to your computer and use it in GitHub Desktop.
Save CreativeNotice/3440828 to your computer and use it in GitHub Desktop.
Function to check for struct key and value existence
public Boolean function structKeyHasValue( required struct s, required any o)
{
return ( structKeyExists(s,o) && len(s[o]) > 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment