View Single Post
  #22  
Old 02-02-2004, 05:11 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Quote:
You probably already know this, but just in case you dont... setting a variable as an array to use in the condition isn't necessary. You can just put {num,num2,num3,etc} directly in the if ().
I know that.
Quote:
So is VeX_RaT_Boy just using it once or are you assuming that? O.o
My name is Kjetil.

I got 2 reasons for using a variable;

1. It looks nice if your going to have the array long: if (blah in {1,2,3})

That is ok, but what if it was up to 50?


2. When I script with variables I normally use it in more than one place.


Even though it wasn't more than 1 in this case, I did not post the whole script. It could've been longer.
__________________
-Kjetil Valen
Reply With Quote