Sets how many times a loop or timer repeats.
<n:for 1 limit=10 do=...> counts from 1 to 10.<t:timer period=1,{s} limit=inf onTimer=...> repeats indefinitely.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.