> Yup, but that still means that the lookup is being done.
But you have control over it because you can scope-qualify your struct variable:
structKeyExists(variables.foo,'bar')
CF *will* find variables (the scope) pretty quickly and then foo will
only be looked up inside that scope. You can't do the same with
isDefined() as Barney showed - if variables.foo.bar doesn't exist,
isDefined() will try to find other ways to lookup
"variables.foo.bar"...
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- RE: StructKeyExists() vs IsDefined() Barney Boisvert
- Re: StructKeyExists() vs IsDefined() Matt Robertson
- RE: StructKeyExists() vs IsDefined() Barney Boisvert
- RE: StructKeyExists() vs IsDefined... Spike
- RE: StructKeyExists() vs IsDef... Barney Boisvert
- RE: StructKeyExists() vs ... Spike
- RE: StructKeyExists()... Barney Boisvert
- RE: StructKeyExists()... Spike
- Re: StructKeyExists()... Sean Corfield
- RE: StructKeyExists()... Spike
- Re: StructKeyExists()... Sean Corfield
- Re: StructKeyExists()... Simon Horwith
- RE: StructKeyExists()... Barney Boisvert
- RE: StructKeyExists()... Spike
- Re: StructKeyExists()... Matt Robertson
- Re: StructKeyExists()... Matt Robertson
- RE: StructKeyExists()... Barney Boisvert
- RE: StructKeyExists()... Spike
- RE: StructKeyExists()... Barney Boisvert
- RE: StructKeyExists()... Spike
- Re: StructKeyExists()... Stephen Moretti (cfmaster)