-->
Page 1 of 1

Unbounded loop?

PostPosted: Mon Jan 04, 2016 7:01 am
by AndyGadget
We've got the bounded FOR / NEXT loop in ESP8266 Basic, but would it be possible to implement an unbounded loop of the DO / LOOP UNTIL variety? This would allow loops to be coded without the IF (value) > (endvalue) THEN GOTO (label at top of loop) structure.

Re: Unbounded loop?

PostPosted: Tue Jan 05, 2016 6:49 pm
by Mmiscool
Whats wrong with the following?

Code: Select all[top]
'do some stuff
goto [top]


or using an if then statement? Otherwise there will need to be more things added to a stack.

Possibly better to keep with the KISS method on this one.