Sha256: 31cd05e67bdc64bdea4c28674eb3f0f019f386e098302948f88072de252847c5
Contents?: true
Size: 914 Bytes
Versions: 22
Compression:
Stored size: 914 Bytes
Contents
REPEAT OBJECT TYPE NAME: repeat SHORTCUT: repeat DESCRIPTION Run a script a given number of times. CHILDREN times integer - 0 The number of times to run the script. index integer - 0 The current iteration when the repeat loop is running. do - script - none The action we want to perform for iteration of the loop. MESSAGES run - Run the script for the given number of times. EXAMPLE repeat [can] : s [string] : on_load [script] : put $.screen_cols / 2 into repeat.x.times tell repeat.x to run show repeat.s tell repeat.y to run show repeat.s x [repeat] : times [integer] : 30 index [integer] : 0 do [script] : put repeat.s + '-' into repeat.s y [repeat] : times [integer] : 10 index [integer] : 0 do [script] : show repeat.y.index SEE ALSO
Version data entries
22 entries across 22 versions & 2 rubygems