counter
Function
Returns the iteration count of the innermost repeat loop being executed.
Synonym for the repeatIndex
.
Example:
repeat 3 times
put the counter
end repeat
Output:
1
2
3
Related
History
- Added in SenseTalk 1.61.
Returns the iteration count of the innermost repeat loop being executed.
Synonym for the repeatIndex
.
Example:
repeat 3 times
put the counter
end repeat
Output:
1
2
3