Statement: Condition, Type: Supporting
Starting New Session
Format: initial-condition-statement Starting a New Session
where
Description
The Starting and New Session identifiers go together to test the condition if a new session has been initiated when you select File > New Session from the main view. When a new session is initiated, the outcome of the condition is evaluated as true the program control is passed to the body of the condition block.
Example
When we initialize a new session, we want to initialize some data and get some input data from the user. The supporting condition identifiers, Starting and New Session instructs the compiler to evaluate this condition statement as true of when the user initiates a new session. The following example will perform this task.
RX Script | Copy Code |
---|---|
While Starting a new Session begin Call "initialize" Call "get inputs" Exit end |