Developer Documentation Library > 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. For more information, see Logical operators.
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. For more information, see User-defined constants.
Dim
Declares one or more variables. For more information, see Variables.
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. For more information, see On Error.
Exit
1. Terminates the script and returns control to the application executing the script. For more information, see Exit.
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. For more information, see Variables.
False
Specifies a boolean value that fails a conditional test. For more information, see Additional keywords.
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. For more information, see Function.
GlobalVariables
Part of an Option GlobalVariables statement, which specifies that variables defined in the main script are visible to Functions and Sub procedures. For more information, see Variables.
GoTo
Transfers execution to another part of the script. For more information, see GoTo.
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. For more information, see Variables.
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. For more information, see Object collection iteration.
Is
Introduces an Is [Not] Null statement, which is used to test if an object reference is assigned to a variable. For more information, see mrScriptBasic FAQs and troubleshooting.
Like
Returns the boolean value True if a text string matches a pattern. For more information, see Like operator.
Loop
Defines the end of a Do...Loop iteration statement.
Mod
Returns the remainder of dividing one number by another. For more information, see Arithmetic operators.
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. For more information, see On Error.
Not
Returns True if the expression evaluates to False, or returns False if the expression evaluates to True. For more information, see Logical operators.
Null
Indicates that a variable contains no valid data. For more information, see Additional keywords.
On
Introduces an On Error statement.
Option
Introduces an Option Explicit, Option GlobalVariables, or Option Implicit statement. For more information, see Variables.
Or
Returns the boolean value True if one or both of the operands are true. Otherwise, returns False. For more information, see Logical operators.
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. For more information, see On Error.
Section
Introduces a block statement that groups one or more statements. For more information, see Section.
Select
Introduces a Select Case conditional statement.
Set
In an assignment statement, specifies that an object reference will be assigned to the variable. For more information, see Assignment statements.
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. For more information, see Sub.
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. For more information, see Additional keywords.
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. For more information, see With.
Xor
Returns the boolean value True if only one of the operands is true. Otherwise, returns False. For more information, see Logical operators.
See also
mrScriptBasic overview