Try:

    if (whichModel.name <> "cone01") and (whichModel.name <> "cone02") then

But if you want a general solution, then the list idea works well:

   listOfNames = ['cone01", "cone02", "someOtherName", "yetAnothername", ...]

   where = getOne(listOfNames, whateeverYouWantToTestFor)
   if where > 0 then
     -- found it
   else
     -- not in the list
   end if

Irv

At 5:36 PM +0000 3/8/02, Kevin Mccarthy wrote:
>Hi all,
>
>I�m trying to build chess in 3D and I am detecting what�s under the
>mouse loc or not and in turn change it�s color, but am having difficulty
>in a small section:
>
>if (whichmodel.name) <> "cone01" then
>
>I would like to say �or� another model  , so I can refer to more models
>that don�t need to be affected i.e
>
>if (whichmodel.name) <> "cone01" or "cone02" then
>
>
>But lingo doesn�t like this, can anyone recommend a way of doing this, I
>thought about putting them into a list and referring to that, but again
>I can�t get that to work..???
>



-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)
[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!]

Reply via email to