Paste #1280: repeat magic test

Date: 2014/01/12 15:58:06 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


testx:
    type: task
    script:
    - define i 1
    - repeat 5 {
      - define i <m:%i%+1>
      - announce "%value% at %i%" to_console
      - if %i% > 3 {
        - announce "%i% is big!" to_console
        - announce "Also, at %value% still"
        - repeat 2 {
          - announce to_console "Subloop is at %value%"
          }
        }
      }