Repeat loop requires plain number, transformed vector, or transformed variable

This commit is contained in:
Holger Vogt 2024-03-19 17:05:10 +01:00
parent 92b3a901c7
commit 03a1010a65
1 changed files with 12 additions and 1 deletions

View File

@ -1,10 +1,21 @@
example repeat loop
.control
* plain number
repeat 3
echo How many loops? Count yourself!
end
echo
* variable
set loops = 7
repeat $loops
echo How many loops? $loops
end
echo
* vector
let loopvec = 4
repeat $&loopvec
echo How many loops? $&loopvec
end
.endc