[a131] Loop else not working with until statements

Report problems with documented functionality
iseahound
Posts: 678
Joined: 13 Aug 2016, 21:04
GitHub: iseahound

[a131] Loop else not working with until statements

Post by iseahound » 15 Apr 2021, 10:36

Code: Select all

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

Edit: Fixed Title
Last edited by iseahound on 15 Apr 2021, 11:39, edited 1 time in total.
gregster
Posts: 6095
Joined: 30 Sep 2013, 06:48

Re: Loop else not working with until statements

Post by gregster » 15 Apr 2021, 10:44

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...
lexikos
Posts: 7412
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

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

Post by lexikos » 15 Apr 2021, 23:59

It is not intended to work.
joefiesta
Posts: 414
Joined: 24 Jan 2016, 13:54
Location: Pa., USA

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

Post by joefiesta » 16 Apr 2021, 08:20

Okay. so we eliminate the ELSE clause. Even then, the statement is INVALID SYNTAX. So, why no runtime error?
swagfag
Posts: 4299
Joined: 11 Jan 2017, 17:59

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

Post by swagfag » 16 Apr 2021, 08:46

its best u show what exactly uve "eliminated".

Code: Select all

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

Return to “Bug Reports”