Click to compare with Python equivalents
| 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 ] |
| command | [action] |
|---|---|
| 2.1. import | [ imports a module ] |
| 2.2. sleep() | [ wait seconds before executing next command ] |
| 2.3. while | [ A while loop will continue until the statement is false ] |
| 2.4. for | [ can be used to iterate through a sequence ] |
| 2.5. range() | [returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and stops before a specified number. |
Make a local macro using a string (words):
    local name
Make a local macro using a string (words):
    name=
Print local macro "name":
    display
Print local macro "name":
    print(
Make a local macro using numbers:
    local age = 31
Make a local macro using numbers:
    age=31
Print local macro age:
    display
Print local macro age:
    print(
Print both local macros:
    display
Print both local macros:
    print(
Load Time Module
    from import
    local i = 1
    while
    display
    local i =
    sleep 1000
    }
i=1
while
    print(
    i += 1
    sleep(1)
    forvalues i = 1/10 {
    display
    sleep 1000
    }
for in range(10):
    print(
    sleep(1)
Counting by 2:
    forvalues i = 1(2)10 {
    display
    sleep 1000
    }
Counting by 2:
for in range(1, 12, 2):
    print(
    sleep(1)
Create list of juice
    local juice
loop over each element of list "juice"
    foreach i in
    display
    sleep 1000
    }
Create list of juice
juice =
loop over each element of list "juice"
for in juice:
    print(
    sleep(1)