Re: Sequence depths please explain
- Posted by euman at bellsouth.net Mar 28, 2002
- 382 views
----- Original Message ----- From: "Tony Steward" <tony at locksdownunder.com> To: "EUforum" <EUforum at topica.com> > Hi all, > How can I tell if a sequence is a single sequence of if it contains more > sequences. > > eg > test = {Tony Steward} -- Single sequence > test = {{Tony Steward}{lockmaster67 at aol.com}{22432345}} -- Multi > Thanks Tony There might be a better way but this seems to work ok. sequence test1, test2 test1 = "Tony Steward" -- Single sequence test2 = {"Tony Steward","lockmaster67 at aol.com",{22432345}} if sequence(test1[1]) then puts(1, "test1 is > 1") end if if sequence(test2[1]) then puts(1, "test2 is > 1") end if if getc(0) then end if Euman euman at bellsouth.net