fix: allow scoped variables such as cx16.rX as loop variable in forloops

This commit is contained in:
Irmen de Jong
2021-12-10 14:59:04 +01:00
parent e342311bef
commit 33061aaa0d
6 changed files with 8 additions and 6 deletions

View File

@@ -643,8 +643,7 @@ Loops
for loop
^^^^^^^^
The loop variable must be a byte or word variable,
and must be defined first in the local scope of the for loop.
The loop variable must be a byte or word variable, and it must be defined separately first.
The expression that you loop over can be anything that supports iteration (such as ranges like ``0 to 100``,
array variables and strings) *except* floating-point arrays (because a floating-point loop variable is not supported).