> <cfif isdefined('arguments.strCustomFees["Custom" & 68 & "Include"]')>
>
> Error: Element Custom68Include is undefined in a CFML structure referenced as 
> part of an expression.
>
> So since it's undefined, shouldn't isdefined just return a false?

Array notation is kind of funny about this. In array notation, your
variable name is arguments.strCustomFees, which does exist. You can't
use isDefined to identify a missing position within an array. If you
changed this to dot notation, this would work, but the better solution
is to use structKeyExists as Cameron and Matt suggested.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352890
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to