Scripting > mrScriptBasic overview > mrScriptBasic keyword summary
 
mrScriptBasic keyword summary
Prior to version 6.0.1, UNICOM Intelligence reserved the following keywords. Starting with version 6.0.1, the keywords are no longer reserved, and can be used as variable names.
See also Keywords reserved for future use.
Keyword
Description
And
Returns the boolean value True if both of the operands are true. Otherwise, returns False. See Logical operators for more information.
Case
Specifies an expression to be evaluated in a Select Case conditional statement.
Const
Declares a constant, which can be used instead of a literal value. See User-defined constants for more information.
Dim
Declares one or more variables. See Variables for more information.
Do
Introduces a Do...Loop iteration statement.
Each
Specifies the variable that will be used to iterate through a collection or an array in a For Each...Next statement.
Else
Introduces one or more statements that will be executed if all the expressions in an If...Then...Else or a Select Case conditional statement evaluate to False.
ElseIf
Specifies an expression to be evaluated if all the previous expressions in an If...Then...Else conditional statement evaluate to False.
End
Defines the end of one of the following statements or procedures: If...Then...Else, Select Case, While...End While, With, Section, Sub, Function.
Error
Specifies a statement to be executed when an error occurs. See On Error for more information.
Exit
1. Terminates the script and returns control to the application executing the script. See Exit for more information.
2. Terminates one of the following statements or procedures: Do...Loop, For...Next, For Each...Next, Sub, Function.
Explicit
Part of an Option Explicit statement, which specifies that all variables must be explicitly defined. See Variables for more information.
False
Specifies a boolean value that fails a conditional test. See Additional keywords for more information.
For
Introduces a For...Next or For Each...Next iteration statement.
Function
Introduces a procedure that can accept arguments, execute one or more statements, and return a value. See Function for more information.
GlobalVariables
Part of an Option GlobalVariables statement, which specifies that variables defined in the main script are visible to Functions and Sub procedures. See Variables for more information.
GoTo
Transfers execution to another part of the script. See GoTo for more information.
If
Introduces an If...Then...Else conditional statement.
Implicit
Part of an Option Implicit statement, which specifies that variables do not need to be explicitly defined. See Variables for more information.
In
1. Specifies the collection or array to iterate through in a For Each...Next statement.
2. Specifies a categorical value that defines the index values to be used to iterate through a collection. See Object collection iteration for more information.
Is
Introduces an Is [Not] Null statement, which is used to test if an object reference is assigned to a variable. See mrScriptBasic FAQs and troubleshooting for more information.
Like
Returns the boolean value True if a text string matches a pattern. See Like operator for more information.
Loop
Defines the end of a Do...Loop iteration statement.
Mod
Returns the remainder of dividing one number by another. See Arithmetic operators for more information.
Next
1. Defines the end of a For...Next or For Each...Next iteration statement.
2. In an error handler, part of a Resume Next statement, which transfers execution to the statement following the statement that caused the error.
3. Part of an On Error Resume Next statement, which transfers execution to the statement following a statement that causes an error. See On Error for more information.
Not
Returns True if the expression evaluates to False, or returns False if the expression evaluates to True. See Logical operators for more information.
Null
Indicates that a variable contains no valid data. See Additional keywords for more information.
On
Introduces an On Error statement.
Option
Introduces an Option Explicit, Option GlobalVariables, or Option Implicit statement. See Variables for more information.
Or
Returns the boolean value True if one or both of the operands are true. Otherwise, returns False. See Logical operators for more information.
Paper
Reserved routing name.
Resume
1. In an error handler, part of a Resume Next statement, which transfers execution to the statement following the statement that caused the error.
2. Part of an On Error Resume Next statement, which transfers execution to the statement following a statement that causes an error. See On Error for more information.
Section
Introduces a block statement that groups one or more statements. See Section for more information.
Select
Introduces a Select Case conditional statement.
Set
In an assignment statement, specifies that an object reference will be assigned to the variable. See Assignment statements for more information.
Step
Specifies the incremental value for the loop counter in a For...Next iteration statement.
Sub
Introduces a procedure that can accept arguments and execute one or more statements. See Sub for more information.
Then
Introduces one or more statements that will be executed if the first expression in an If...Then...Else conditional statement evaluates to True.
To
Specifies the final value of the loop counter in a For...Next iteration statement.
True
Specifies a boolean value that passes a conditional test. See Additional keywords for more information.
Until
Specifies the condition that terminates the execution of the loop in a Do...Loop statement.
While
Specifies the condition that allows the execution of the loop to continue in a Do...Loop or While...End While statement.
With
Introduces a block statement that executes one or more statements on an object. See With for more information.
Xor
Returns the boolean value True if only one of the operands is true. Otherwise, returns False. See Logical operators for more information.
See also
mrScriptBasic overview