Here is an example scenario.
What I expect to happen:
(first pass)
IF #1 = True
IF #2 = False
ELSE = True
(second pass)
IF #1 = False
IF #2 = True
break
main:
if (level.example1)
end
level.example1 = 1
local.var = 0
while(1)
if (local.var == 0) {
wait 1
stuffsrv ("say First IF statement TRUE.")
}
if (local.var == 1) {
wait 1
stuffsrv ("say Second IF statement TRUE.")
break
}
else {
wait 1
stuffsrv ("say ELSE statement TRUE.")
local.var = 1
}
end
With two IF's next to each other the script breaks. Perhaps I've been spoiled in the past with good languages making up for bad coding