[a131] Loop else not working with until statements

Report problems with documented functionality
iseahound
Posts: 1444
Joined: 13 Aug 2016, 21:04
Contact:

[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: 9001
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: 9583
Joined: 30 Sep 2013, 04:07
Contact:

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: 497
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: 6222
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”