Var processing

This block is used to extract different types of data from a variable’s value. The extraction method is similar to the ‘Extract from the speech’ mechanism used in the ‘Recognition’ block.

At the output of the «Var processing» block, two anchors will appear:

  1. «Processed.» To continue the scenario when the processing result is successful;
  2. «Not Processed.» To continue the scenario when, for some reason, the processing and writing to the variable did not occur.

Number

Extracts integers from a variable and stores them as a number.

For example, if the user says: «I think the number 356 will do».

The program will extract the number and save it as «356».

Further additional operations are available:

  1. Randomization — creating random values;
  2. Increment — increases the value of a variable by one;
  3. Decrement — reduces the value of a variable by one;
  4. Increase by — increases the value of the variable by the number that will be entered when this operation is selected;
  5. Decrease by — decreases the value of the variable.

Sequence of digits

Selects numbers from a variable and stores them as a sequence, which are separated by spaces.

For example, if the subscriber says: “I think one, or better two, or maybe three”,

The result will be written to the variable as: “1 2 3″.

On this page