Page 1 of 1
help for you on scripting if,and while functions

Posted:
Thu Jan 03, 2008 2:40 am
by DarkParadox
C code chart for game editor
< Smaller than
<= Smaller or equal to
== Equal to
!= Not equal to
> Larger than
>= Larger or equal to
&& And
! Not
|| Or
Re: help for you on scripting if,and while functions

Posted:
Fri Jan 04, 2008 2:24 pm
by Bee-Ant
you forgot one thing :
|| or
right?
Re: help for you on scripting if,and while functions

Posted:
Fri Jan 04, 2008 2:32 pm
by DarkParadox
i deleted that because i didn't think it would work in game editor
Re: help for you on scripting if,and while functions

Posted:
Fri Jan 04, 2008 6:45 pm
by j2graves
this will be helpful to me, thanx!
Re: help for you on scripting if,and while functions

Posted:
Sat Jan 05, 2008 8:26 am
by Bee-Ant
diormeh wrote:i deleted that because i didn't think it would work in game editor
You're wrong!!!
I have used it in mostly my games...
Re: help for you on scripting if,and while functions

Posted:
Tue Jan 08, 2008 10:41 pm
by DarkParadox
i'll fix it.
Re: help for you on scripting if,and while functions

Posted:
Fri Jan 11, 2008 11:56 pm
by GuitarManGuitar
Re: help for you on scripting if,and while functions

Posted:
Sat Jan 12, 2008 12:28 am
by makslane
- Code: Select all
if(somevariable > 0 || somevariable < 10)
{
//Your code here
}
Re: help for you on scripting if,and while functions

Posted:
Sat Jan 12, 2008 12:33 am
by Game A Gogo
- Code: Select all
if(Condition1<Condition2 || Condition1==10)
{
//Action
}
If "Condition1<Condition2" or "Condition==10" are true, the action will happen
EDIT: Makslane beat me to it xD
Re: help for you on scripting if,and while functions

Posted:
Sat Jan 12, 2008 8:42 pm
by GuitarManGuitar
tyvm