{"id":1125,"date":"2023-04-07T14:45:12","date_gmt":"2023-04-07T11:45:12","guid":{"rendered":"https:\/\/docs.unibell.ru\/?page_id=1125"},"modified":"2024-08-15T15:10:39","modified_gmt":"2024-08-15T12:10:39","slug":"%d1%81%d1%80%d0%b0%d0%b2%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%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.unibell.tech\/?page_id=1125","title":{"rendered":"Var comparison"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_1.png\"><img decoding=\"async\" width=\"117\" height=\"89\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_1.png\" alt=\"\" class=\"wp-image-1727\"\/><\/a><\/figure>\n\n\n\n<p>This block is used to compare a variable\u2019s value with any other set value or with another variable&#8217;s value with a possibility to specify an embedded object. (More details about an embedded object you can find in the <a href=\"https:\/\/docs.unibell.tech\/scenario\/%d0%bf%d0%b5%d1%80%d0%b5%d0%bc%d0%b5%d0%bd%d0%bd%d0%b0%d1%8f\/\" data-type=\"page\" data-id=\"837\">\u2018<\/a><a href=\"https:\/\/docs.unibell.tech\/?page_id=3256\" data-type=\"page\">Variable\u2019 block<\/a>)<\/p>\n\n\n\n<p>The results of a comparison are the \u2018True\u2019 or the \u2018False\u2019 values.<\/p>\n\n\n\n<p>If both operands are numbers they are compared by the rules for comparison of numbers, otherwise by the rules for comparison of rows.<\/p>\n\n\n\n<p>Features of the block are:<\/p>\n\n\n\n<p>1. Choice of comparison operation<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_2.png\"><img decoding=\"async\" width=\"272\" height=\"310\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_2.png\" alt=\"\" class=\"wp-image-1542\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_2.png 272w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_2-263x300.png 263w\" sizes=\"(max-width: 272px) 100vw, 272px\" \/><\/a><\/figure>\n\n\n\n<p>2. Choice of a variable that will have its value compared<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_3.png\"><img decoding=\"async\" width=\"273\" height=\"313\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_3.png\" alt=\"\" class=\"wp-image-1543\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_3.png 273w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_3-262x300.png 262w\" sizes=\"(max-width: 273px) 100vw, 273px\" \/><\/a><\/figure>\n\n\n\n<p>3. Choice of what a variable\u2019s value will be compared with. For the option \u2018Compare with a value\u2019 in the \u2018Compared value\u2019 field enter a value.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_4.png\"><img decoding=\"async\" width=\"265\" height=\"314\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_4.png\" alt=\"\" class=\"wp-image-1544\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_4.png 265w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_4-253x300.png 253w\" sizes=\"(max-width: 265px) 100vw, 265px\" \/><\/a><\/figure>\n\n\n\n<p>If a variable has to be compared with another variable you can go to the \u2018Variable\u2019 block and choose the needed variable. If data structure is to be assigned to this variable then you can specify in the \u2018Nested object\u2019 field which object from this data structure has to be compared.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_5.png\"><img decoding=\"async\" width=\"268\" height=\"380\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_5.png\" alt=\"\" class=\"wp-image-1545\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_5.png 268w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/variable-comparison_5-212x300.png 212w\" sizes=\"(max-width: 268px) 100vw, 268px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This block is used to compare a variable\u2019s value with any other set value or with another variable&#8217;s value with a possibility to specify an embedded object. (More details about an embedded object you can find in the \u2018Variable\u2019 block) The results of a comparison are the \u2018True\u2019 or the \u2018False\u2019 values. If both operands <a href=\"https:\/\/docs.unibell.tech\/?page_id=1125\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  Var comparison<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":862,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"tpl\/scenario-personal.php","meta":{"footnotes":""},"class_list":["post-1125","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/1125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1125"}],"version-history":[{"count":18,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/1125\/revisions"}],"predecessor-version":[{"id":3305,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/1125\/revisions\/3305"}],"up":[{"embeddable":true,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/862"}],"wp:attachment":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}