If then else in handlers *Q*
Posted: Sun Jan 19, 2014 1:04 pm
Hi all,
I have a question about handlers and if conditions. I hope you can help.
I have a handler with several if conditions in them and then more code after the statements.
At the moment if one of the if condition is true the rest of the script is not run/executed even after I have closed the if structure why is this?
example:
on OpenCard
if condition
then
do something
end if
if condition2
then
do something else
end if
##extra code to do other things below does not get executed if 1 condition is true. If I put it before the "if" all work. Just want to learn why it does not if put after. I hope this makes sense.
animations##not executing
launch web pages##not executing
end OpenCard
I have a question about handlers and if conditions. I hope you can help.
I have a handler with several if conditions in them and then more code after the statements.
At the moment if one of the if condition is true the rest of the script is not run/executed even after I have closed the if structure why is this?
example:
on OpenCard
if condition
then
do something
end if
if condition2
then
do something else
end if
##extra code to do other things below does not get executed if 1 condition is true. If I put it before the "if" all work. Just want to learn why it does not if put after. I hope this makes sense.
animations##not executing
launch web pages##not executing
end OpenCard