Variable > 9 <2

Talk about making games.

Variable > 9 <2

Postby Troodon » Fri Dec 15, 2006 5:47 pm

How can I make in script editor:
Code: Select all
If (variable between for example 9 and 2)
{
action
}

Thanks
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Fri Dec 15, 2006 6:41 pm

Code: Select all
if(variable >= 2 && variable <= 9)
{
   //Your action here
}
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Troodon » Fri Dec 15, 2006 7:50 pm

:shock: This is impossible. It's working! You helped me for 2nd time today!! :P :D :D :D Thanks!
There should be some kind of online chat/irc where GE people could talk direct with each other and ask direct questions.
:wink: 8)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Game A Gogo » Fri Dec 15, 2006 11:17 pm

all you need to do is create a free channel, but doing a constant one, you need to pay.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest