Conditions block
English version of the documentation is under development.
The block is used to create non-linear scripts: the transition to a particular branch depends on the given condition
An unlimited number of conditions can be added to one block. The assistant verifies whether the conditions are true from top to bottom one by one. When a true condition is found, all the subsequent conditions are ignored.
If none of the conditions from the list is true, the assistant applies the else
condition, which is added by default to each Conditions block automatically.
Conditions can be created using variables and any JavaScript and underscore.js operators and functions.
If the variable condition is zero or a number with zero in the integer part, the assistant will consider this condition to be false and move on to the else condition. To correctly assign zero, associate the added condition and else
with the same screen.