doesn't it always exist? even if it's empty? CF arrays are dynamically sized... so if an element doesn't exist, the array "shrinks".
are you getting that the element doesn't exist/is not defined? I would think that if anything, it'd just be an empty string (in which case, just test for the length of the array element). On 8/9/07, Scott Stewart <[EMAIL PROTECTED]> wrote: > Hey all, > > > > I have an array that I'm looping over. > > > > > > <cfloop from="1" to="#ArrayLen(CiteDataArr)#" index="i"> > > </cfloop> > > > > Within the loop I'm outputting data based on whether the array value has > anything in it. > > > > <cfif len(CiteDataArr[i].narrator)>#CiteDataArr[i].narrator# </cfif> > > > > I've run into an array variable that exists sometimes, and sometimes it > doesn't. > > Short of upgrading to Scorpio and using "ArrayIsDefined" is there a way to > determine whether an array value exists? > > > > Thanks > > > > sas > > > > -- > > Scott Stewart > > ColdFusion Developer > > > > SSTWebworks > > 4405 Oakshyre Way > > Raleigh, NC. 27616 > > (703) 220-2835 > > > > http://www.sstwebworks.com > > <http://www.linkedin.com/in/sstwebworks> > http://www.linkedin.com/in/sstwebworks > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285867 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

