hazelsisson
Programmer
Hello!
I have defined a handler in my lingo, which won't compile. It looks similar to this:
on replaceComponents
set the visible of sprite 50 = true
if ... then
...
else...
...end if
if ... then
...
else...
...end if
end
It always has the error "Handler Definition Expected", unless I take out the second if loop (in this case it compiles).
Does anyone have any idea what is going on here? I have had similar problems in the past; all involving if loops within user defined handlers. Moving it around and trying different constructs often solves the problem but this one won't work!
Thanks,
Hazel
I have defined a handler in my lingo, which won't compile. It looks similar to this:
on replaceComponents
set the visible of sprite 50 = true
if ... then
...
else...
...end if
if ... then
...
else...
...end if
end
It always has the error "Handler Definition Expected", unless I take out the second if loop (in this case it compiles).
Does anyone have any idea what is going on here? I have had similar problems in the past; all involving if loops within user defined handlers. Moving it around and trying different constructs often solves the problem but this one won't work!
Thanks,
Hazel