ifelse.... !!!!

Started by onloser, April 25, 2009, 04:15:08 AM

Previous topic - Next topic

onloser

Hey guys, below is an ifelse code I wrote for a character..

damage    = ifelse((prevstateno = [1000,1199]),80,ifelse((prevstateno =

[1200,1999]),90,100)))

But it was buggy..  I couldn't identify the mistake in this code, can anyone of you correct it for me ? thanks in advance !

Byakko

Don't you have one ")" too many ?
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

onloser

yeah !!! you are right.. I didn't count that one.. thanks man !