Question on using IF statements on 01/31/2011 08:50 PM CST
Links-arrows 1
Reply Reply
Are IF statements in StormFront only able to determine variables %1-%9? Is there a way to use them like in other programming languages? For instance.

If %s = down then
goto Continue
else
goto Start

Player of
Relvar
Reply Reply
Re: Question on using IF statements on 01/31/2011 09:13 PM CST
Links-arrows 2
Reply Reply
>Is there a way to use them like in other programming languages? For instance.

Unfortunately not, but there are someways to perform the same function.

For instance, I think this should have the same function as your example:

setvariable RETURN label_else
goto label_%s
label_down:
goto Continue
label_else:
goto Start
labelError:
goto %RETURN%


It's not pretty, but it can work.

- Greminty
Reply Reply