Hi, I am using the XMLParser Xtra within a director 8.5 movie, and I'm outputting the parsed XML to a lingo list with the makeList command.
This produces large multi dimensional lists that I have to work with, it's a pain to bug fix, but that's not the current issue. Although I will always be 99.9% sure that the xml layout will always be the same, I would like to check that a specific list element exists before trying to access it and protect myself against any "index out of range errors". The list element I am accessing (for example) may look like this: theList[1][2][4][2][1][1] Is there any way I can check that this list element exists, apart from doing a huge nested if / loop to check the count of each dimension before moving onto the next dimension if the count is >= the element I want? Something like "if varExists(theList[1][2][4][2][1][1]) then". A nested if would be fine for 1 or 2 accesses, but I need to access potentially hundreds of elements. Thanks Tim [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
