Contents

Library

Tutorial

Keywords
Operators
Colours
Constants

KEYWORDS

Keywords are always in lowercase. Keywords can only be the first word in a statement. Some keywords are only used by themselves.

List of Keywords

var

while
wend
break

if
elseif
else
endif

fn
endfn
return


Keywords that are the only word in a statement.

wend
break
else
endif
endfn

var
Creates a variable.
Variable names consist of digits and letters.
The first character must be a letter.

The last character may be a $. In this case the
variable is a string variable.



while
Starts a while...wend loop.

wend
Completes a while...wend loop.

break
Jumps out of a loop such as a while loop.



if
Starts an if block.

elseif
May be used inside an if block.

else
May be used inside an if block.

endif
Ends an if block.



fn
Begins a function.

endfn
Ends a function.

return
Returns a value from a function.



let(used by interpreter only)

goto(used by interpreter only)

call(used by interpreter only)



OPERATORS

+
Add
Adds two numbers together

-
Subtract

*
Multiply

/
Divide



=
Assignment
or
Comparison

>
Greater than

<
Less than

>=
Greater than or equal to

<=
Less than or equal to

<>
Not equal to

++
Adds one

--
Subtracts one



+=
Adds the right hand side to the left.

-=
Subtracts the right hand side from the left.

*=
Multiplies the left hand side by the right.

/=
Divides the left hand side by the right.

^
Multiplies by the power of.



%
Finds the remainder of a division.


COLOURS

Any of the following standard colours can be used whenever a colour is needed. An alternative is to use the rgb function to create a colour.


CONSTANTS

KeyAlt
The value of the Alt key.

KeyCapsLock
The value of the Caps lock key.

KeyCtrl
The value of the Crtl key.

KeyEnd
The value of the End key.

KeyEnter
The value of the Enter key.

KeyHome
The value of the Home key.

KeyInsert
The value of the Insert key.

KeyPageDown
The value of the PageDown key.

KeyPageUp
The value of the PageUp key.

KeyShift
The value of the Shift key.

KeyAlt
The value of the Alt key.

KeyLeft
The value of the left cursor key.

KeyRight
The value of the right cursor key.

KeyUp
The value of the cursor up key.

KeyDown
The value of the cursor down key.

KeyEscape
The value of the escape key.

True
The value of true.

False
The value of false (zero).