I'm assigning values to my structure dynamically and I need
to find if one or more of the value(s) is/are empty string value
I tried to use :
<cfset aResults = #StructFindValue(mystruct,"", "all"
)#> and I got what I wanted but now I'm not sure how can I refer
back to the Key for those empty value(s)?
For example if this is my structure:
<CFSET str_mystruct= structNew()>
<CFSET str_mystruct["FN"}="Sylvia">
<CFSET str_mystruct["LN"}="Smith">
<CFSET str_mystruct["Add"}="">
<CFSET str_mystruct["City"}="Bladensburg">
<CFSET str_mystruct["zip"}="">
The StructFindValue function found 2 keys with empty
values,they are Add and Zip
what is the syntax for CFIF condition, for example if Add or
Zip keys is "" do something?