{"id":839,"date":"2023-03-09T16:59:51","date_gmt":"2023-03-09T13:59:51","guid":{"rendered":"https:\/\/docs.unibell.ru\/?page_id=839"},"modified":"2025-02-07T09:40:04","modified_gmt":"2025-02-07T06:40:04","slug":"%d0%be%d0%b1%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%ba%d0%b0-%d0%bf%d0%b5%d1%80%d0%b5%d0%bc%d0%b5%d0%bd%d0%bd%d0%be%d0%b9","status":"publish","type":"page","link":"https:\/\/docs.cpaas.mittoapi.net\/?page_id=839","title":{"rendered":"Var processing"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2025\/02\/var_processing.png\"><img decoding=\"async\" width=\"115\" height=\"87\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2025\/02\/var_processing.png\" alt=\"\" class=\"wp-image-4171\"\/><\/a><\/figure>\n\n\n\n<p>This block is used to extract different types of data from a variable\u2019s value. The extraction method is similar to the \u2018Extract from the speech\u2019 mechanism used in the \u2018<a href=\"https:\/\/docs.cpaas.mittoapi.net\/?page_id=835\" data-type=\"page\" data-id=\"835\">Recognition<\/a>\u2019 block.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/07\/var_processing.png\"><img decoding=\"async\" width=\"282\" height=\"351\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/07\/var_processing.png\" alt=\"\" class=\"wp-image-3667\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/07\/var_processing.png 282w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/07\/var_processing-241x300.png 241w\" sizes=\"(max-width: 282px) 100vw, 282px\" \/><\/a><\/figure>\n\n\n\n<p>At the output of the &#8220;Var processing&#8221; block, two anchors will appear:<\/p>\n\n\n\n<ol>\n<li>&#8220;Processed.&#8221; To continue the scenario when the processing result is successful;<\/li>\n\n\n\n<li>&#8220;Not Processed.&#8221; To continue the scenario when, for some reason, the processing and writing to the variable did not occur.<\/li>\n<\/ol>\n\n\n\n<h2 id=\"number\" class=\"anchor\">Number<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/var_processing1.png\"><img decoding=\"async\" width=\"268\" height=\"238\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/var_processing1.png\" alt=\"\" class=\"wp-image-3529\"\/><\/a><\/figure>\n\n\n\n<p>Extracts integers from a variable and stores them as a number.<\/p>\n\n\n\n<p>For example, if the user says: &#8220;I think the number 356 will do&#8221;.<\/p>\n\n\n\n<p>The program will extract the number and save it as &#8220;356&#8221;.<\/p>\n\n\n\n<p>Further additional operations are available:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/var_processing2.png\"><img decoding=\"async\" width=\"275\" height=\"412\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/var_processing2.png\" alt=\"\" class=\"wp-image-3530\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/var_processing2.png 275w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/var_processing2-200x300.png 200w\" sizes=\"(max-width: 275px) 100vw, 275px\" \/><\/a><\/figure>\n\n\n\n<ol>\n<li>Randomization &#8211; creating random values;<\/li>\n\n\n\n<li>Increment &#8211; increases the value of a variable by one;<\/li>\n\n\n\n<li>Decrement &#8211; reduces the value of a variable by one;<\/li>\n\n\n\n<li>Increase by &#8211; increases the value of the variable by the number that will be entered when this operation is selected;<\/li>\n\n\n\n<li>Decrease by &#8211; decreases the value of the variable.<\/li>\n<\/ol>\n\n\n\n<h2 id=\"sequence_of_digits\" class=\"anchor\">Sequence of digits<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/var_processing3.png\"><img decoding=\"async\" width=\"274\" height=\"183\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/var_processing3.png\" alt=\"\" class=\"wp-image-3531\"\/><\/a><\/figure>\n\n\n\n<p>Selects numbers from a variable and stores them as a sequence, which are separated by spaces.<\/p>\n\n\n\n<p>For example, if the subscriber says: \u201cI think one, or better two, or maybe three\u201d,<\/p>\n\n\n\n<p>The result will be written to the variable as: \u201c1 2 3&#8243;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This block is used to extract different types of data from a variable\u2019s value. The extraction method is similar to the \u2018Extract from the speech\u2019 mechanism used in the \u2018Recognition\u2019 block. At the output of the &#8220;Var processing&#8221; block, two anchors will appear: Number Extracts integers from a variable and stores them as a number. <a href=\"https:\/\/docs.cpaas.mittoapi.net\/?page_id=839\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  Var processing<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":862,"menu_order":8,"comment_status":"closed","ping_status":"closed","template":"tpl\/scenario-personal.php","meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/839"}],"collection":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=839"}],"version-history":[{"count":18,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/839\/revisions"}],"predecessor-version":[{"id":4174,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/839\/revisions\/4174"}],"up":[{"embeddable":true,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/862"}],"wp:attachment":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}