4. Common Code Blocks

4.1. Control

Control

Block

Effect

00-wait-x-seconds

Wait x seconds

01-repeat-x

Repeat x times

02-forever

Loop forever

03-if-then

if-then control statement

04-if-then-else

if-then-else control statement

05-wait-until

wait until termination condition is satisfied

06-repeat-until

repeat until terimation condition satisfied

07-stop

stop scripts

4.2. Operators

Operators

Block

Effect

00-x-plus-y

add two numbers

01-x-minus-y

subtract two numbers

02-x-times-y

multiply two numbers

03-x-divide-y

divide two numbers

04-pick-random-x-to-y

pick a random number in the specified range

05-x-gt-y

evaluates if left number is greater than right number

06-x-lt-y

evaluates if left number is less than right number

07-x-equals-y

evaluates if numbers are equal

08-x-and-y

boolean logical and

09-x-or-y

boolean logical or

10-not-x

boolean not

11-join-text-text

concatenates two strings

12-letter-x-of-text

gets the letter at the specified index of the string

13-length-of-text

gets the length of the string

14-text-contains-x

checks if the string contains the specified value

15-x-mod-y

returns the remainder

16-round

rounds a number

17-math-of-x

performs the unary math operation over the specified number

4.3. Variables

Variables

Block

Effect

00-make-a-variable

make a new variable

01-make-a-list

make a variable containing a list of items

4.4. My Blocks

My Blocks

Block

Effect

00-make-a-block

make a new

customized block