How to verify a password and change a value

Last Updated : Sep 08, 2012 |

In the example, the global collect variable A is used in call center vectors to control the flow that a call experiences. The variable is assigned using the change variable command and is given a type collect and a scope of G for global. The other settings depend on how the variable is used. The length is 1 to 16 with a start position of 1.

The vector prompts the user for a 16–digit password. The password is compared to the expected value contained on the active VDN as VDN variable V2. Step 8 prompts the user to enter new value for variable A. The announcement is recorded to list the expected values along with the use of each value.

The following example illustrates one approach to accomplish the tasks. The vector flow can also be written using vector subroutines for entry confirmation.

01 wait-time 2 secs hearing ringback
02 # Entry and Validation of Security Code
03 collect 16 digits after announcement V1 for none
04 goto step 6 if digits = V2
05 disconnect after announcement none
06 # This vector modifies the value of Variable A for global call flow
07 # control. Enter 111-Normal Ops, 222-Evacuation, 333-Severe Impairment
08 collect 3 digits after announcement V3 for A
09 # Goodbye
10 stop