There seems to be a parsing issue when break appears inside an if block before an else or else if section. The compiler reports Compiler Error: 'else' skips expected 'break', which doesn't make much sense. Sample code (tested both in Try-It! and in command-line MiniScript):
for x in range(1,10)
if x > 5 then
print "A"
break
else
print "B"
end if
end for
print "Done"
There seems to be a parsing issue when
break
appears inside anif
block before anelse
orelse if
section. The compiler reports Compiler Error: 'else' skips expected 'break', which doesn't make much sense. Sample code (tested both in Try-It! and in command-line MiniScript):