{"id":8821,"date":"2026-11-20T13:23:27","date_gmt":"2026-11-20T10:23:27","guid":{"rendered":"https:\/\/help.bothelp.io\/formula-usloviya-i-proverki\/"},"modified":"2026-11-20T13:54:12","modified_gmt":"2026-11-20T10:54:12","slug":"formula-usloviya-i-proverki","status":"publish","type":"post","link":"https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/","title":{"rendered":"Formula: Conditions and Checks"},"content":{"rendered":"<p>The functions in this group check conditions and pick the right value right inside the formula \u2014 without a separate &#8220;Condition&#8221; step.<\/p>\r\n<p><strong>Where it helps:<\/strong><\/p>\r\n<ul>\r\n<li>calculate a discount based on several conditions at once;<\/li>\r\n<li>check whether a field is filled and show the subscriber a clear message;<\/li>\r\n<li>avoid calculation errors such as division by zero.<\/li>\r\n<\/ul>\r\n<p>Boolean values are supported: <code>True<\/code>, <code>False<\/code>.<\/p>\r\n<h2>Functions<\/h2>\r\n\n<table id=\"tablepress-6\" class=\"tablepress tablepress-id-6\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\"><strong>Function<\/strong><\/th><th class=\"column-2\"><strong>Description<\/strong><\/th><th class=\"column-3\"><strong>Example<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">if(condition, then_value, else_value)<\/td><td class=\"column-2\">Checks a condition. If it is true, returns then_value; otherwise, returns else_value. Only the matching branch is calculated, so if(x != 0, 10 \/ x, 0) doesn't cause an error when x = 0.<\/td><td class=\"column-3\">if(client.age >= 18, \"\u0412\u0437\u0440\u043e\u0441\u043b\u044b\u0439\", \"\u041d\u0435\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u043b\u0435\u0442\u043d\u0438\u0439\")<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">if(condition, then_value)<\/td><td class=\"column-2\">If else_value is not specified, returns an empty string.<\/td><td class=\"column-3\">if(is_null(client.phone), \"\u041d\u043e\u043c\u0435\u0440 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\")<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">is_null(var)<\/td><td class=\"column-2\">Checks if a variable is empty.<\/td><td class=\"column-3\">is_null(client.email) \u2192 True<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">and, or, not<\/td><td class=\"column-2\">Logical operators for combining conditions.<\/td><td class=\"column-3\">if(a > 0 and b < 10, \"ok\")<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">is_int(value)<\/td><td class=\"column-2\">Checks whether the value is an integer. Also works with strings.<\/td><td class=\"column-3\">is_int(\"42\") \u2192 True<br>is_int(5.5) \u2192 False<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">is_float(value)<\/td><td class=\"column-2\">Checks whether the value is a number, integer or decimal. Also works with strings; the decimal separator can be a dot or a comma.<\/td><td class=\"column-3\">is_float(\"5,5\") \u2192 True<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-6 from cache -->\r\n<h2>Example: a discount based on several conditions<\/h2>\r\n<p>Let&#8217;s calculate the final discount based on previous purchases and the number of completed lessons. Make sure all the variables are created <strong>in advance<\/strong>.<\/p>\r\n\r\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\"># 1. Loyalty: 20% discount if purchases &gt; 3\r\nbase_discount = if(client.sum_orders &gt; 3, 20, 0)\r\n\r\n# 2. Engagement: 20% for &gt;=10 lessons, 10% for &gt;=5\r\nengagement_discount = if(client.completed_lessons &gt;= 10, 20, if(client.completed_lessons &gt;= 5, 10, 0))\r\n\r\n# 3. Final discount\r\nclient.discount = base_discount + engagement_discount<\/pre><\/div>\r\n\r\n\r\n<p>In <strong>line 2<\/strong> we use the <code>if<\/code> condition:<\/p>\r\n<ul>\r\n<li>if there are <strong>more than 3<\/strong> purchases, <strong>base_discount = 20<\/strong>;<\/li>\r\n<li>otherwise \u2014 <strong>0<\/strong>.<\/li>\r\n<\/ul>\r\n<p>In <strong>line 5<\/strong> the condition is double:<\/p>\r\n<ul>\r\n<li><strong>10 or more<\/strong> lessons \u2014 <strong>engagement_discount = 20<\/strong>;<\/li>\r\n<li><strong>5 or more<\/strong> \u2014 <strong>10<\/strong>;<\/li>\r\n<li>otherwise \u2014 <strong>0<\/strong>.<\/li>\r\n<\/ul>\r\n<p><strong>base_discount<\/strong> and <strong>engagement_discount<\/strong> are variables <strong>without<\/strong> a prefix. They work only inside the current &#8220;Formula&#8221; step and are used for intermediate calculations.<\/p>\r\n<p>In <strong>line 8<\/strong> we add them up and save the result to the user variable <strong>discount<\/strong>, which you can show to the subscriber in the next steps.<\/p>\r\n<h2>Example: check whether a field is filled (<code>is_null<\/code>)<\/h2>\r\n<p>Let&#8217;s check whether the subscriber entered a value, get the technical result (<code>True \/ False<\/code>) and show a clear message.<\/p>\r\n<ol>\r\n<li>Check the variable with <code>is_null()<\/code>.<\/li>\r\n<li>Save the result to a separate variable.<\/li>\r\n<li>Use <code>if()<\/code> to turn the result into text for the subscriber.<\/li>\r\n<li>Show the result in a message.<\/li>\r\n<\/ol>\r\n\r\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">client.A = is_null(client.answer)\r\nclient.D = if(is_null(client.answer), &quot;Field is empty&quot;, &quot;Field is not empty&quot;)<\/pre><\/div>\r\n\r\n\r\n<p>Output in the message:<\/p>\r\n<p><code>{%A%}<\/code><br \/><code>{%D%}<\/code><\/p>\r\n<p><strong>What the subscriber sees<\/strong><\/p>\r\n<p>If the field is empty:<\/p>\r\n<p><code>1<\/code><br \/><code>Field is empty<\/code><\/p>\r\n<p>If the field is filled:<\/p>\r\n<p><code>0<\/code><br \/><code>Field is not empty<\/code><\/p>\r\n<p><strong>Important:<\/strong> <code>is_null()<\/code> returns a logical value. When saved to a variable, <code>1<\/code> means <code>True<\/code> and <code>0<\/code> means <code>False<\/code>. The result can only be saved to a variable of the number or text type.<\/p>\r\n<h2>Example: a calculation without a division-by-zero error<\/h2>\r\n<p><code>if<\/code> calculates only the matching branch, so the division isn&#8217;t performed when there are no orders yet.<\/p>\r\n\r\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">client.avg_check = if(client.orders_count != 0, client.revenue \/ client.orders_count, 0)<\/pre><\/div>\r\n\r\n\r\n<p>If the subscriber has 0 orders, <code>avg_check<\/code> gets <code>0<\/code> instead of an error.<\/p>\r\n<hr \/>\r\n<p>If you did not find the answer to your question, feel free to contact us in the chat inside your dashboard, message us on Telegram at <a href=\"https:\/\/t.me\/BotHelpSupportBot\" target=\"_blank\" rel=\"noopener\"><strong>@BotHelpSupportBot<\/strong><\/a>, or email us at <a href=\"mailto:hello@bothelp.io\" target=\"_blank\" rel=\"noopener\"><strong>hello@bothelp.io<\/strong><\/a>.<\/p>\r\n<p>Enjoy the full functionality of the BotHelp platform for creating broadcasts, automated funnels, and chatbots \u2014 free for 14 days.<\/p>\r\n<p><a href=\"https:\/\/bothelp.io\/?utm_source=bz&#038;utm_medium=footer&#038;utm_campaign=16881\"><strong>Get 14 Days Free<\/strong><\/a><\/p>\r\n\t\t\t<div id=\"daexthefu-container\"\r\n\t\t\t\tclass=\"daexthefu-container daexthefu-layout-side-by-side daexthefu-alignment-left\"\r\n\t\t\t\tdata-post-id=\"8821\">\r\n\r\n\t\t\t\t<div class=\"daexthefu-feedback\">\r\n\t\t\t\t\t<div class=\"daexthefu-text\">\r\n\t\t\t\t\t\t<h3 class=\"daexthefu-title\">\u0411\u044b\u043b\u0430 \u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u0430?<\/h3>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"daexthefu-buttons-container\">\r\n\t\t\t\t\t\t<div class=\"daexthefu-buttons\">\r\n\t\t\t\t\t\t\t\n\t\t\t<button type=\"button\" class=\"daexthefu-yes daexthefu-button daexthefu-button-type-icon\" data-value=\"1\" aria-label=\"Yes\">\n\t\t\t\t\n                <svg>\n                    <defs>\n                        <style>.thumb-up-cls-1{fill:#c9c9c9;}.thumb-up-cls-2{fill:#e1e1e1;}.thumb-up-cls-3{fill:#676767;}<\/style>\n                    <\/defs>\n                    <g id=\"thumb_up\">\n                        <path class=\"thumb-up-cls-2 daexthefu-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\n                        <g>\n                            <rect class=\"thumb-up-cls-3 daexthefu-icon-secondary-color\" x=\"10\" y=\"20\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\n                            <path class=\"thumb-up-cls-1 daexthefu-icon-primary-color\" d=\"m30.57,9.06l-.49-.1c-.81-.17-1.61.35-1.78,1.16l-5.3,11.74c-.17.81,3.16,1.61,3.97,1.78l1.96.41c.81.17,1.61-.35,1.78-1.16l2.18-10.27c.34-1.61-.7-3.21-2.31-3.56Z\" \/>\n                            <path class=\"thumb-up-cls-1 daexthefu-icon-primary-color\" d=\"m38.17,20h-18.67c-.83,0-1.5.67-1.5,1.5v12c0,.83.67,1.5,1.5,1.5h16.27c.71,0,1.33-.5,1.47-1.21l2.4-12c.19-.93-.53-1.8-1.47-1.8Z\" \/>\n                        <\/g>\n                    <\/g>\n                <\/svg>\t\t\t<\/button>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t<button type=\"button\" class=\"daexthefu-no daexthefu-button daexthefu-button-type-icon\" data-value=\"0\" aria-label=\"No\">\n\t\t\t\t\n                <svg>\n                    <defs>\n                        <style>.thumb-down-cls-1{fill:#c9c9c9;}.thumb-down-cls-2{fill:#e1e1e1;}.thumb-down-cls-3{fill:#676767;}<\/style>\n                    <\/defs>\n                    <g id=\"thumb_down\">\n                        <path class=\"thumb-down-cls-2 daexthefu-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\n                        <g>\n                            <rect class=\"thumb-down-cls-3 daexthefu-icon-secondary-color\" x=\"10\" y=\"13\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\n                            <path class=\"thumb-down-cls-1 daexthefu-icon-primary-color\" d=\"m30.57,38.94l-.49.1c-.81.17-1.61-.35-1.78-1.16l-5.3-11.74c-.17-.81,3.16-1.61,3.97-1.78l1.96-.41c.81-.17,1.61.35,1.78,1.16l2.18,10.27c.34,1.61-.7,3.21-2.31,3.56Z\" \/>\n                            <path class=\"thumb-down-cls-1 daexthefu-icon-primary-color\" d=\"m38.17,28h-18.67c-.83,0-1.5-.67-1.5-1.5v-12c0-.83.67-1.5,1.5-1.5h16.27c.71,0,1.33.5,1.47,1.21l2.4,12c.19.93-.53,1.8-1.47,1.8Z\" \/>\n                        <\/g>\n                    <\/g>\n                <\/svg>\t\t\t<\/button>\n\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefu-comment\">\r\n\t\t\t\t\t<div class=\"daexthefu-comment-top-container\">\r\n\t\t\t\t\t\t<label id=\"daexthefu-comment-label\" class=\"daexthefu-comment-label\"><\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"daexthefu-comment-character-counter-container\">\r\n\t\t\t\t\t\t\t\t<div id=\"daexthefu-comment-character-counter-number\"\r\n\t\t\t\t\t\t\t\t\tclass=\"daexthefu-comment-character-counter-number\"><\/div>\r\n\t\t\t\t\t\t\t\t<div class=\"daexthefu-comment-character-counter-text\"><\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<textarea id=\"daexthefu-comment-textarea\" class=\"daexthefu-comment-textarea\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"\r\n\t\t\t\t\t\t\t\t400\t\t\t\t\t\t\t\t\t\"><\/textarea>\r\n\t\t\t\t\t<div class=\"daexthefu-comment-buttons-container\">\r\n\t\t\t\t\t\t<button class=\"daexthefu-comment-submit daexthefu-button\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c<\/button>\r\n\t\t\t\t\t\t<button class=\"daexthefu-comment-cancel daexthefu-button\">\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c<\/button>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefu-successful-submission-text\">\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c!<\/div>\r\n\r\n\t\t\t<\/div>\r\n\r\n\t\t\t","protected":false},"excerpt":{"rendered":"<p>if, is_null, and\/or\/not, is_int and is_float: pick a value by condition and run checks right in the formula.<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_helpful_status":1,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-8821","post","type-post","status-publish","format-standard","hentry","category-shagi-v-botah"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Formula: Conditions and Checks<\/title>\n<meta name=\"description\" content=\"if, is_null, and\/or\/not, is_int and is_float: pick a value by condition and run checks right in the formula.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Formula: Conditions and Checks\" \/>\n<meta property=\"og:description\" content=\"if, is_null, and\/or\/not, is_int and is_float: pick a value by condition and run checks right in the formula.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bothelpru\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-20T10:23:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-20T10:54:12+00:00\" \/>\n<meta name=\"author\" content=\"e.bezmaternykh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"e.bezmaternykh\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-conditions-and-checks\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-conditions-and-checks\\\/\"},\"author\":{\"name\":\"e.bezmaternykh\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#\\\/schema\\\/person\\\/3d6703d74bf6281d752af998b5a7a799\"},\"headline\":\"Formula: Conditions and Checks\",\"datePublished\":\"2026-11-20T10:23:27+00:00\",\"dateModified\":\"2026-11-20T10:54:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-conditions-and-checks\\\/\"},\"wordCount\":282,\"articleSection\":[\"Steps in bots\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-conditions-and-checks\\\/\",\"url\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-conditions-and-checks\\\/\",\"name\":\"\u0424\u043e\u0440\u043c\u0443\u043b\u0430: \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 - \u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#website\"},\"datePublished\":\"2026-11-20T10:23:27+00:00\",\"dateModified\":\"2026-11-20T10:54:12+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#\\\/schema\\\/person\\\/3d6703d74bf6281d752af998b5a7a799\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-conditions-and-checks\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-conditions-and-checks\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-conditions-and-checks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"How to Work with BotHelp Service: Setting Up Your Account for Your Business Goals\",\"item\":\"https:\\\/\\\/help.bothelp.io\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Formula: Conditions and Checks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/\",\"name\":\"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp\",\"description\":\"\u0417\u0434\u0435\u0441\u044c \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#\\\/schema\\\/person\\\/3d6703d74bf6281d752af998b5a7a799\",\"name\":\"e.bezmaternykh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g\",\"caption\":\"e.bezmaternykh\"},\"url\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/author\\\/e-bezmaternykh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Formula: Conditions and Checks","description":"if, is_null, and\/or\/not, is_int and is_float: pick a value by condition and run checks right in the formula.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"if, is_null, and\/or\/not, is_int and is_float: pick a value by condition and run checks right in the formula.","og_locale":"en_US","og_type":"article","og_title":"Formula: Conditions and Checks","og_description":"if, is_null, and\/or\/not, is_int and is_float: pick a value by condition and run checks right in the formula.","og_url":"https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/","og_site_name":"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp","article_publisher":"https:\/\/www.facebook.com\/bothelpru","article_published_time":"2026-11-20T10:23:27+00:00","article_modified_time":"2026-11-20T10:54:12+00:00","author":"e.bezmaternykh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"e.bezmaternykh"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/#article","isPartOf":{"@id":"https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/"},"author":{"name":"e.bezmaternykh","@id":"https:\/\/help.bothelp.io\/#\/schema\/person\/3d6703d74bf6281d752af998b5a7a799"},"headline":"Formula: Conditions and Checks","datePublished":"2026-11-20T10:23:27+00:00","dateModified":"2026-11-20T10:54:12+00:00","mainEntityOfPage":{"@id":"https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/"},"wordCount":282,"articleSection":["Steps in bots"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/","url":"https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/","name":"\u0424\u043e\u0440\u043c\u0443\u043b\u0430: \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 - \u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp","isPartOf":{"@id":"https:\/\/help.bothelp.io\/#website"},"datePublished":"2026-11-20T10:23:27+00:00","dateModified":"2026-11-20T10:54:12+00:00","author":{"@id":"https:\/\/help.bothelp.io\/#\/schema\/person\/3d6703d74bf6281d752af998b5a7a799"},"breadcrumb":{"@id":"https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/help.bothelp.io\/en\/formula-conditions-and-checks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"How to Work with BotHelp Service: Setting Up Your Account for Your Business Goals","item":"https:\/\/help.bothelp.io\/"},{"@type":"ListItem","position":2,"name":"Formula: Conditions and Checks"}]},{"@type":"WebSite","@id":"https:\/\/help.bothelp.io\/en\/#website","url":"https:\/\/help.bothelp.io\/en\/","name":"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp","description":"\u0417\u0434\u0435\u0441\u044c \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/help.bothelp.io\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/help.bothelp.io\/#\/schema\/person\/3d6703d74bf6281d752af998b5a7a799","name":"e.bezmaternykh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g","caption":"e.bezmaternykh"},"url":"https:\/\/help.bothelp.io\/en\/author\/e-bezmaternykh\/"}]}},"_links":{"self":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/8821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/comments?post=8821"}],"version-history":[{"count":3,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/8821\/revisions"}],"predecessor-version":[{"id":9162,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/8821\/revisions\/9162"}],"wp:attachment":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/media?parent=8821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/categories?post=8821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/tags?post=8821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}