Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cffunction name="ArrayOfStructsValue" returntype="boolean">
- <cfargument name="arr" type="any" required="true">
- <cfargument name="key" type="any" required="true">
- <cfargument name="value" type="any" required="true">
- <cfset var pass = 0>
- <cfloop index="a" from="1" to="#ArrayLen(arguments.arr)#">
- <cfif arguments.arr[a][arguments.key] eq arguments.value>
- <cfset pass = 1>
- <cfbreak>
- </cfif>
- </cfloop>
- <cfreturn pass>
- </cffunction>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement