INPUT /  OUTPUT /  LANGUAGE





limit field

Scalar field

Sets how many times a loop or timer repeats.

Applies to...

The for and timer tags.

Sample usage

Behaviour

For a for loop, limit is the last value of the count. A for loop is also stopped by the console after 4096 repetitions (this may vary between machines), without warning, since the console can't respond to the user while it runs.

For a timer, limit is the number of times it goes off. It defaults to 1; inf repeats indefinitely, since the console stays responsive between repetitions.