ym88659208ym87991671
Conditions block | Documentation for developers

Conditions block

Last updated on April 10, 2024

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.

Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.