Page 1 of 1

= 20 or 21 or 22???

PostPosted: Wed Jan 30, 2008 4:32 pm
by stevenp
how would i give multiple values in 1 line?

if ( mana = 20 or 21 or 22)
{
do something
}

i tried with commas and periods, but it didnt work

Re: = 20 or 21 or 22???

PostPosted: Wed Jan 30, 2008 4:42 pm
by makslane
Code: Select all
if ( mana == 20 ||mana == 21 || mana == 22)
{
   //do something
}

Re: = 20 or 21 or 22???

PostPosted: Wed Jan 30, 2008 4:47 pm
by stevenp
ty ^,^