Created
August 23, 2012 19:50
-
-
Save CreativeNotice/3440828 to your computer and use it in GitHub Desktop.
Function to check for struct key and value existence
This file contains 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
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