
Token Programming
Defined Tokens
5-18
Strata CIX40 Voice Processing Programming Manual 7/06
=( )
Equate—gives the specified storage variable the value specified. The value may be a string or a
numeric and should be quoted. The four-option syntax enables substring assignments.
Syntax
=(%Sn,item)
=(%Sn,item,start,end)
where:
%Sn
One of the %S storage variables (range: 0~19).
item
Any alphanumeric string. Can contain %S variables.
start
Starting character position for assigning a portion of item.
end
Ending character position to assign when used with start.
Examples
=(%S1,"SPANISH")
Gives %S1 the value of “SPANISH”.
=(%S1,"SPANISH",3,5)
Gives %S1 the value of ENC (E is the start character and C is the end character).
=(%S1,%S2,1,3)
where %S2 = 7530414. Extracts prefix of the telephone number in %S2 (the first through third
number) and gives %S1 the value of 753.
?( )
Exists in file—searches the specified file for the specified item. Stratagy searches the file on a line-by-
line basis and the item is found when it matches an entire line within the file. If the item is found,
processing continues at the User ID specified; if not, processing continues with the next token. For
Holiday Greeting Application, see
Chapter 6 – Customization Examples
.
Syntax
?(item,fsile,uid)
where:
item
Any alphanumeric string. Can contain %S variables.
file
ASCII text file specified by a DOS (8x3) file name.
uid
Valid User ID.
¦( )
Append variables to file—writes all twenty %S variables (%S0~%S19) to the specified file. If the file
already exists, the variable values are appended to the file; otherwise, the file is created. The values
are separated by commas and terminated by a new line.
The
¦( )
token is supported by voice processing.
Syntax
¦(file)
where:
file
Valid file name.
Note
Maximum of 1 custom-made file is taken as 4KB.
Table 5-3
Defined Tokens
(continued)
Token
Description
Summary of Contents for Strata CIX GVPH
Page 10: ...This page is intentionally left blank ...
Page 102: ...This page is intentionally left blank ...
Page 122: ...This page is intentionally left blank ...
Page 144: ...This page is intentionally left blank ...
Page 152: ...This page is intentionally left blank ...