Determines the value associated with a key in a structure.
structFind(structure, key [, defaultValue ])
→ returns any
struct.find(key [, defaultValue ])
Searches through a structure by a given key and outputs the related value
countries = {
"USA"="Washington D.C.",
"Germany"="Berlin",
"Japan"="Tokio"
};
writeOutput(structFind(countries, "Germany"));
Expected Result: Berlin
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.