View Single Post
  #6  
Old 07-07-2002, 06:47 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
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..
Reply With Quote