In former times this worked well, but now we have an 'else' commandIf,<condition1>,If,<condition2>,If,<condition3>,command
Which 'False If Condition' causes the Else command beeing executed?If,<condition1>,If,<condition2>,If,<condition3>,command
Else,command
#1, #2, #3 ???
I have no logical idea.
JonF PMed me a bug.
Simplified:
Here the Echo command is executed and the End command raises a 'stack Error', inspite both commands should be skipped.if,Not,a,equal,a,if,b,equal,b,begin
echo,x
end
I fixed that (075 beta 5 K). But if there are three If in a line, this cannot be fixed. Similar question as above.
Therefore:
@ .script developers:
Try to use begin .. end more frequently!
e.g.
Here it is also rather easy to place the Else correctly, maybe also with Begin ... End.If,<condition1>,Begin
If,<condition2>,Begin
If,<condition3>,Begin
...
End
End
End
And the above sample should be:
if,Not,a,equal,a,begin
if,b,equal,b,begin
echo,x
end
end
Peter
BTW: I'll have a look whether the Begin ... End blocks can be permanently indented in the script.