On Mon, 16 Aug 2010, Hélio Guilherme wrote:
Well, here is the script I tested on latest Windows Snapshot.
text:
scalar state = 13
scalar delta = 0.001
if state==13
delta=.38
elif state==16
delta=.35
elif state==31
delta=.30
elif state==84
delta=.26
else delta=0
endif
printf "%d => %f", state, delta
---
We may have found a bug here:
The statement "*else delta=0*" is not being evaluated! Please test this.
"else" needs a line to itself:
...
else
delta = 0
endif
The construction "else delta=0" should really provoke an error
message, though it doesn't at present.
Allin Cottrell