Like LISP, a 'list' is the fundamental datatype, and every expression evaluates to a list.

<expr1> indicates the parameter passed in will be the final element from the evaluated list.

<exprList> is a list of expressions (each of which can evaluate to a list), which will be passed as a flattened list to the function.

### Arithmetical Operations

 add (add ) Adds together the numbers evaluated in the expression list. Example: (add 1 2 3 (list 4 5 6) (list 7 "eight" 9)) returns 37. divide (divide Divides expr1 by expr2 using integer division. Example: (div 15 5) returns 3. mult (add ) Multiplies together the numbers evaluated in the expression list. Example: (mult 1 2 3 (list 4 5 6) (list 7 "eight" 9)) returns 45360. sub (sub ) Subtracts expr2 from expr1. Example: (sub 42 (list 3 5)) returns 37.

### Logical Operations

The empty list is considered false, and everything else is true.

To define constants for true and false, put (setg true "true") and (setg false (list)) at the start of the program ((list) defines an empty list).

Since false is the empty list, (print (equals 1 0)) will print nothing to the screen.

 and (and ) Evaluates to true if every element evaluates to "true". It is a short-cutting boolean operation. Example: (and (equals 1 1) (lt 1 2) (list "true" "true")) returns true. not (not ) Evaluates to true if expr is false, and false if expr is true. For example: (not (equals 1 1)) returns false. or (or ) Evaluates to true if any element evaluates to "true". It is a short-cutting boolean operation. Example: (or (equals 0 1) (lt 1 2) (list (list) (list))) returns true.

### Control Flow

 when (when ) Evaluates if evaluates to true. Example: (when (equals 1 1) (print "Hello") (print "World")) returns: Hello World if (if ) Evaluate if evaluates to true, otherwise . is optional. For example: (if (equals 1 0) "It does!" "It doesn't!") returns "It doesn't!". while (while ) Repeatedly evaluates for as long as is true. Example: (setg n 0) (while (lt n 3) n (setg n (add 1 n))) returns: 0 1 2