Lucee Function Reference

structfind()

Determines the value associated with a key in a structure.

Example

structfind(struct struct,string key,[any defaultValue]):any

Category

struct,find

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
struct struct  Yes Structure that contains the value to return  
key string  Yes Key whose value to return  
defaultValue any  No Default value which will be returned if the key does not exist or if null was found