Token Programming
Defined Tokens
Stratagy I&M 06/02
7-7
T
o
ken Pr
ogramming
Defined Tokens
Defined Tokens are expressed with left and right parentheses surrounding one or more definitions
that determine how the token should work. For example, the Goto token
G( )
only takes one
definition. Stratagy immediately “goes to” the User ID specified for processing. For G(123),
Stratagy continues processing at User ID 123.
Strings that contain a space, comma or quotes, must be enclosed with quotes (e.g., “9,%S1”) or
Stratagy may misread the token.
Table 7-3
Defined Tokens
Token
Description
G( )
Go to User ID—immediately continues processing at the User ID specified. Stratagy continues
standard processing at the User ID per the User ID mailbox processing diagram (
Syntax
G(uid)
where:
uid
User ID
Example
G(299)
Goes to User ID 299.
H( )
Hang-up process—defines the specified uid as the uid that Stratagy processes when it detects a
hang-up condition. This is useful for performing cleanup and/or exit routines when a caller hangs up.
Syntax
H(uid)
where:
uid
Valid User ID
I( )
If conditional—if the relationship between the first string and the second string is true, then continue
processing at the User ID specified by uid. Otherwise, processing continues with the next token.
Syntax
I(string,relationship,string,uid)
where:
string
Any quoted set of characters, numbers, and/or variables.
relationship Either >, <.=,! which test for greater than, less than, equal, or not equal.
uid
Valid User ID. Can be a variable.
Examples
I("111",<,"222",1000)
Immediately continues processing at User ID 1000.
I("111",>,"222",1000)
Does not continue processing at User ID 1000 and instead continues with the next token.
I("%S1",=,"1234",2000)
Continues processing at User ID 2000 only if %S1 has the value 1234.
I("%S1",=,"SPANISH",2000)
Continues processing at User ID 2000 only if %S1 = SPANISH.
Содержание Stratagy Flash
Страница 20: ...Contents Index viii Stratagy I M 06 02 ...
Страница 24: ...Introduction Related Documents Media xii Stratagy I M 06 02 ...
Страница 52: ...Installation Step 16 Optional Back up Database Mailbox Names and Greetings 2 18 Stratagy I M 06 02 ...
Страница 102: ...Configure Stratagy SMDI Serial Integration 4 38 Stratagy I M 06 02 ...
Страница 204: ...Customization Examples Auto Menu Examples 8 28 Stratagy I M 06 02 ...
Страница 214: ...AMIS Networking AmisNodeList 9 10 Stratagy I M 06 02 ...
Страница 222: ...System Reports Report Menu Field Descriptions 10 8 Stratagy I M 06 02 ...
Страница 250: ...Special Greeting User ID Mailboxes Operator Mailbox Greeting B 6 Stratagy I M 06 02 ...