
07-07-2002, 06:47 AM
|
|
Darth Cucumber
|
 |
Join Date: Mar 2001
Location: At School
Posts: 2,874
|
|
|
thats a good thing to keep in mind tho Wind... Its something we do In C++ a lot. you could potentially do anything a normal ifelse can do (for setting a varaible atleast), and shorten it to 1 line. its good for compacting things.
this.var = (this.var > 3? 2 : this.var<2 1 : 0);
and what not.
Although you can also try doing just
this.var = (condition);
such as
this.var = (strequals(#n,Falados));
it would be true if your name was falados, and false if it isn't.
You could potentially do it for on/off variable aswell.
this.on = (this.on==0);
Im not sure graal will necesarily accept that. however it will probably accept this..
this.on=(strequals(0,#v(this.on))); |
__________________
subliminal message: 1+1=3
|
Last edited by Falcor; 07-07-2002 at 12:32 PM..
|
|
|