TSP Edge User’s Manual
40-400-00065, Rev. E
101
Conditionals/Timers/Events
The following describes the commands on the Conditions/Timers/Events tab.
Wait for Event(s)
The
Wait for Event(s)
command causes the script to pause until a selected event has
taken place. Events include such things as a change in line state, a message from the
Route channel, or a timer expiring. If multiple events are selected in one command, it
should be followed by a series of
If
and
Else If
commands to determine which event
occurred.
If
If
and
Else If
commands use logic statements to determine what actions to perform
based on which of multiple selected events actually occurred during a
Wait for
Event(s)
command. If the logic statement is true, the commands below the
If
or
Else If
are executed. If the logic is false, the command to the right of the
If
or
Else If
is
executed.
The
If
and
Else If
commands can only test for the conditions which were selected in
the last executed
Wait for Event(s)
command.
Else
An
Else
command is automatically added for each
If
command and is the branch that
is executed when none of the conditions in the associated
If
and
Else If
commands are
true. There is no command button to add an
Else
command.
Else If
The
Else If
works the same as the
If
command and is used to differentiate when more
than one option is chosen in a
Wait for Event
command. It keeps multiple If
statements on the same level of the script making it easier to read.
Else If
commands
can only be added to the right of an
If
command or another
Else If
command.
Go To
The
GoTo
command allows the flow of events to jump anywhere in a script. A
Label
must exist for the
GoTo
to jump to. Multiple
GoTo
commands may jump to the same
Label
.
If no
Label
exists when inserting this command, both a
Go To
command and a
Label
command are created with a common identifying number. The arrows at the top of
the script window or the “cut and paste” operation can be used to move the
Label
command to where you want the
GoTo
to jump.
Содержание TSP Edge
Страница 1: ...TSP Edge User s Manual 40 400 00065 Rev E ...