what can you use for "or"

Game Editor comments and discussion.

what can you use for "or"

Postby magic_maxwell2 » Sun Nov 05, 2006 10:38 pm

I need to know what you could us as or in someting like

if(animindex==3 "or" animindex==2)
magic_maxwell2
 
Posts: 8
Joined: Sat Jul 15, 2006 3:07 pm
Score: 0 Give a positive score

Postby makslane » Sun Nov 05, 2006 11:33 pm

Use the C syntax:

Or: ||
And: &&

Code: Select all
if(animindex==3 || animindex==2)
{
    //Your command here
}
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron