0 Replies Latest reply on Oct 6, 2006 9:24 AM by leotemp

    Checking for array values.

    leotemp Level 1
      I have dynamic output that may or may not create multiple xml nodes of the same name, im converting them to an array for use but i need a way of checking if the array has multiple dimensions or not, If i dont know how far into the array my data is i cant assign it to anything.

      for example sometimes my xml may have 5 <heading> nodes, sometimes it has none. if it has more then one then i need to retrieve it with something like Myarray[0][0].heading but if it says has one <heading> node returned then i would have to use Myarray[0].heading and if it has none then i cant try to asign the data at all or it wil caus an error, how can i check for this and handle it?