Page 1 of 1

[a131] Loop else not working with until statements

Posted: 15 Apr 2021, 10:36
by iseahound

Code: Select all

for element in list := [] {
} until true
else MsgBox
until statements prevent the else from "attaching" to the loop.

Edit: Fixed Title

Re: Loop else not working with until statements

Posted: 15 Apr 2021, 10:44
by gregster
I assume this is related to the latest v2 release. If that's the case, it would make sense to - at least - mention this in the topic title...

Re: [a131] Loop else not working with until statements

Posted: 15 Apr 2021, 23:59
by lexikos
It is not intended to work.

Re: [a131] Loop else not working with until statements

Posted: 16 Apr 2021, 08:20
by joefiesta
Okay. so we eliminate the ELSE clause. Even then, the statement is INVALID SYNTAX. So, why no runtime error?

Re: [a131] Loop else not working with until statements

Posted: 16 Apr 2021, 08:46
by swagfag
its best u show what exactly uve "eliminated".

Code: Select all

for element in list := [] {
} until true
produces no errors, runtime or otherwise