command | [action] |
---|---|
2.1. local macro-name value | [ stores value under macro-name ] |
2.2. sleep milliseconds | [ wait milliseconds before executing next command ] |
2.3. while expression | [ executes command if expression is true] |
2.4. forvalues macro-name = range | [ executes command if value of macro is in range ] |
2.5. foreach macro-name = list | [ executes command for each element of macro ] |
Make a local macro using a string (words):
    local
name
Print local macro "name":
    display
Make a local macro using numbers:
    local
age = 31
Print local macro age:
    display
Print both local macro:
    display
    local i = 1
    while
    display
    local
i =
    sleep
1000
    }
    forvalues
i = 1/10 {
    display
    sleep
1000
    }
Counting by 2:
    forvalues
i = 1(2)10 {
    display
    sleep
1000
    }
Create list of juice
    local
juice
loop over each element of list "juice"
    foreach
i in
    display
    sleep
1000
    }