The spellcast.inc I have works at work, and not here. A bit annoying. I started just re editing it and ran into some other problems.
Ok, I seem to have issues with { parsing on /if
Can someone tell me me the problem with this code?
From how it looks to me, it should evaluate the compare, and not do any of the code in the { }
However, it doesn't run the first line, and runs all the next lines. What am I doing wrong?
Code: Select all
Sub Main
/declare MyVar global
/if (${String[@MyVar].Equal["Test1"]}) /echo hello1
/varset MyVar "Smurf"
/echo @MyVar
/if (${String[@MyVar].Equal["Test1"]}) { /echo hello
/echo hello2
/echo hello23
/echo here3
}
/return


