| KEYWORD |
DESCRIPTION |
USAGE |
| INCLUDE | Include code from an external file. You can reference environment variables inside the include string with this syntax "${env_var}" | INCLUDE <STRING_LITERAL> |
| INCLUDE ONCE | Tells the compiler to only include the current file once. | INCLUDE ONCE |
| IF | ELSEIF | ELSE | END IF | Executes a block of code if an expression is true NOTE: ELSEIF can be substituted for ELSE IF |
IF <EXPRESSION> THEN ..... ELSEIF <EXPRESSION> THEN ..... ELSE ..... END IF |
| SELECT | CASE | DEFAULT | END SELECT |
Executes a block of code if a case is equal to the selection case | SELECT CASE <EXPRESSION> CASE <EXPRESSION> ..... DEFAULT ..... END SELECT |
| DO | LOOP | UNTIL | WHILE | Executes a block of code while a condition is true or until a condition is met | DO ..... LOOP {UNTIL | WHILE} <EXPRESSION> |
| WHILE | WEND | Executes a block of code while a condition is true | WHILE <EXPRESSION> ..... WEND |
| FOR | TO | STEP | NEXT | Sets a counter variable to an initial value and executes a block of code until the counter variable has reached a peak value | FOR <ID> = <EXPRESSION> TO <EXPRESSION>
{STEP} <EXPRESSION> ..... NEXT |
| EXIT | Exits a loop | EXIT { DO | FOR | WHILE } |
| CONTINUE | Jumps back to the start of a loop | CONTINUE |
| FUNCTION | RETURN | END FUNCTION |
Creates a function | FUNCTION <ID> ( {BYREF}<ID>, ...) ..... RETURN <EXPRESSION> END FUNCTION |
| SUB | RETURN | END SUB | Creates a Sub Routine | SUB <ID> ( {BYREF} <ID>, ...) ..... {RETURN} END SUB |
| Outputs Text to a console | PRINT <EXPRESSION> | |
| END | Ends a program. Add a number expression after END to set the exit code. | END END <EXPRESSION> |
| DIM | Creates a variable or array | DIM <ID> { [ } <EXPRESSION>{ ] } |
| REDIM | Resizes an array | REDIM <ID> { [ } <EXPRESSION>{ ] } |
| DELETE | Deletes an array | DELETE <ID> |
| TRUE | Constant that evaluates to NOT 0 | TRUE |
| FALSE | Constant that evaluates to 0 | FALSE |