Re: If/then and sequences...
- Posted by Bernie <xotron at PCOM.NET> Aug 28, 2000
- 493 views
On Mon, 28 Aug 2000 09:33:40 -0700, LEVIATHAN <leviathan at USWEST.NET> wrote: >Heya all! > >Alright, i've got a slight problem... > >I've got a sequence. An object even. its called buffer. > >I've got to compare a object against another sequence (if buffer[1] = >"//ammo" then ...) > >However, when I go and run it, it pukes like so: > >"true/false condition must be an ATOM". > >Obviously my object i'm comparing against is a sequence, and the >object i'm using is definatly not a sequence. > >So, how would I get around this? > >TIA, > >Blessed Be! --"LEVIATHAN" What does buffer[1] contain ? The error is telling you that buffer[1] is a atom and NOT a sequence. You are trying to compare a ATOM with a SEQUENCE. Try printing buffer[1] and you will see an atom.