[Coco] GOTO and code maintainability

Darren A mechacoco at gmail.com
Fri Sep 11 11:29:35 EDT 2009


On 9/11/09, Bill Barnes wrote:
>
> This one Wont work though, seems that -10 > 1 in the test (at least in VCC):
>
> 10 FOR I=0TO1STEP-10:PRINT"HELLO MOTO":NEXT I
>
---

When the STEP value is negative, the loop will terminate when the
variable's value is less than the final value.

Darren



More information about the Coco mailing list