Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

English

Variable types

Оглавление

Issue

.

Have you ever had situations when you give a phone number to the robot for voiceover, for example 89133912047, and it voices it as eighty-nine billion, one hundred thirty-three million ...?

Or you decide to voice the date, and the robot voices it like twenty, twenty-one, one, one?

This is because the robot does not know anything about the information you give it. It doesn't know that the set of numbers is a phone number or a date, not a long number.

To have it understand what kind of information it is, it needs to be told about it.

What types of data does the robot know

.

The robot can work with the following types of received information:

  1. Date. It will voice a variable with this type in the format of "January 1st", having received "01.01" from you
  2. The amount in rubles. It will voice a variable with this type in the format "Ten rubles", having received "10" from you
  3. Abbreviation., It will voice a variable with this type by letters "F.S.S.P.", having received "fssp" from you
  4. Phone number. It will voice a variable of this type according to the digits of the telephone number "Eight, nine hundred and thirteen, ..." having received from you "89133912047"
  5. Name or Patronymic / Text data. These 2 types do not differ from each other, the robot will simply reproduce the information that you give it.

Where to set the variable type

.

All global settings for the script are made in a round block of settings. You need the item "Variables".

  1. Open the settings block and scroll the settings items down;

2. Click on ‘Add variable’;

3. Specify the variable name and its type;

4. If you need to set the type for several variables, click on "Add variable" and repeat step 3.

Информация

Keep in mind that in the case when you somehow change a variable, for example: change its type, change its value, write it, etc., the name is written without braces. Let's say m_0

In cases when you simply work with a variable without changing it in any way, for example: you compare the value in it by condition, take its value, etc., the name is written in braces. Let's say{m_0}


Remember to save the script for the settings to apply!

...