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

Version Path
gloo-lang-1.0.2 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-1.0.0 lib/gloo/help/objs/ctrl/repeat.txt
gloo-lang-1.0.1 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-lang-1.0.0 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-lang-0.9.11 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-lang-0.9.10 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-lang-0.9.9 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-lang-0.9.8 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-lang-0.9.7 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-lang-0.9.6 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-lang-0.9.5 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-lang-0.9.4 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-lang-0.9.3 lib/gloo_lang/help/objs/ctrl/repeat.txt
gloo-0.8.0 lib/gloo/help/objs/ctrl/repeat.txt
gloo-0.7.7 lib/gloo/help/objs/ctrl/repeat.txt
gloo-0.7.6 lib/gloo/help/objs/ctrl/repeat.txt
gloo-0.7.5 lib/gloo/help/objs/ctrl/repeat.txt
gloo-0.7.4 lib/gloo/help/objs/ctrl/repeat.txt
gloo-0.7.3 lib/gloo/help/objs/ctrl/repeat.txt
gloo-0.7.2 lib/gloo/help/objs/ctrl/repeat.txt