{"id":473,"date":"2022-09-05T13:56:19","date_gmt":"2022-09-05T12:56:19","guid":{"rendered":"https:\/\/support.botnation.ai\/the-if-condition-feature\/"},"modified":"2022-09-12T11:25:18","modified_gmt":"2022-09-12T10:25:18","slug":"the-if-condition-feature","status":"publish","type":"post","link":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/","title":{"rendered":"The IF Condition feature"},"content":{"rendered":"\n<p>Launch an action in your chatbot based on a condition on a variable<\/p>\n\n\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Summary<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/#1_What_is_an_IF_Condition_on_Botnation\" >1. What is an IF Condition on Botnation?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/#2_What_is_it_for\" >2. What is it for?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/#3_How_does_it_work\" >3. How does it work?<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_What_is_an_IF_Condition_on_Botnation\"><\/span>1. What is an IF Condition on Botnation?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In a word, this is what will allow your chatbot to act in a LOGICAL way.<\/p>\n\n\n\n<p>It is an instruction that takes the form: <strong>IF<\/strong> X happens (condition) <strong>THEN<\/strong> do A (consequence) <strong>OR<\/strong> do B (alternative).<br><br><em>The conditions are usually in the form &#8220;If&#8230; Then&#8230; Else&#8230;&#8221; in all the main programming languages like Javascript, C, Python, Perl, PHP etc&#8230;<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_What_is_it_for\"><\/span>2. What is it for?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If Conditions are essential to make your chatbot dynamic. You will use them regularly to guide users according to their choices and especially according to the data captured in variables when they answer. The If Conditions will also provide logic to your chatbot so that it makes the right decisions.<\/p>\n\n\n\n<p><strong>Here are some examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>To personalize a chat: Depending on the time of day the chatbot can say &#8220;Good evening&#8221; instead of &#8220;Good morning&#8221; or depending on the gender of the user say &#8220;Mrs&#8221; or &#8220;Mr&#8221;.<\/li><li>To direct a user to a particular sequence based on his actions. After a quiz, depending on the user &#8220;s results, he will be directed to different answers according to his points.<\/li><li>Calculate discounts according to the order, if the order is over 40\u20ac the chatbot can apply a 10% discount<\/li><li>etc&#8230;<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_How_does_it_work\"><\/span>3. How does it work?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The &#8220;If&#8230;&#8221; Conditions are found in the &#8220;Variables {&#8230;}&#8221; tool tab.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"809\" height=\"450\" src=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-60.png\" alt=\"\" class=\"wp-image-481\" srcset=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-60.png 809w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-60-300x167.png 300w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-60-768x427.png 768w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><\/figure>\n\n\n\n<p>First we determine the variable on which the condition will be applied. You can choose it from the list of <a href=\"https:\/\/support.botnation.ai\/en\/all-about-variables\/\">chatbot variables<\/a> in the drop-down menu or create it for the occasion.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"307\" src=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-61.png\" alt=\"\" class=\"wp-image-483\" srcset=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-61.png 827w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-61-300x111.png 300w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-61-768x285.png 768w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/figure>\n\n\n\n<p>Then you choose the operator (equal to, greater than, different from, etc.) and finally the value of the variable.<br><br>We then choose the action that will be triggered if the condition is met.  <\/p>\n\n\n\n<p><strong>The possible types of actions are:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Redirection : launches a chatbot sequence<\/li><li>Assign: <a href=\"https:\/\/support.botnation.ai\/en\/assign-a-value-to-a-variable\/\">assign a value to a variable<\/a><\/li><li>Increment : increase the value of a variable<\/li><li>Decrement : decrease the value of a variable<\/li><li>Text: Display a text<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>TIP<\/strong><br>You can trigger several actions at the same time.<\/p><\/blockquote>\n\n\n\n<p>Finally, we determine the action that should be triggered when the condition is not met. Otherwise the bot would simply continue to execute the functions under the condition block.<\/p>\n\n\n\n<p><strong>Example of a classic condition:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"382\" src=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-62.png\" alt=\"\" class=\"wp-image-485\" srcset=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-62.png 821w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-62-300x140.png 300w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-62-768x357.png 768w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/figure>\n\n\n\n<p><em>In this example, the &#8220;IF Condition&#8221; feature is used to guide the user based on the availability of a consultant:  <strong>IF <\/strong>a consultant is free (CAD when the variable &#8220;expert_advisor&#8221; is set to &#8220;available&#8221;)  <strong>THEN<\/strong> it is redirected to a live chat sequence,  <strong>OR<\/strong> we redirect him to a sequence on which he can leave a message<\/em>.<\/p>\n\n\n\n<p>You can also make Multiple Conditions like :  <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>If it happens A <strong>AND<\/strong> B then&#8230;<\/li><li>If it happens A <strong>OR<\/strong> B then&#8230;<\/li><\/ul>\n\n\n\n<p>It is the equivalent of &#8220;AND&#8221; and &#8220;OR&#8221; in classical programming.<\/p>\n\n\n\n<p><strong>Example of Multiple OR Condition:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"426\" src=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-63.png\" alt=\"\" class=\"wp-image-487\" srcset=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-63.png 820w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-63-300x156.png 300w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-63-768x399.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<p><em>In this example, we use the &#8220;IF Condition&#8221; feature to determine the availability of a consultant based on the day of the week:  <strong>IF<\/strong>  we are Saturday (bn_date_Wday = 7)  <strong>OR IF<\/strong>  we are Sunday bn_date_Wday = 1)  <strong>THEN<\/strong>  the advisor is not available (the variable &#8220;expert_advisor&#8221; will have the value &#8220;Busy&#8221;).<\/em><\/p>\n\n\n\n<p><strong>Example of Multiple AND Condition:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"426\" src=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-64.png\" alt=\"\" class=\"wp-image-490\" srcset=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-64.png 817w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-64-300x156.png 300w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-64-768x400.png 768w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><\/figure>\n\n\n\n<p><em>In this example, we use the &#8220;IF Condition&#8221; feature to determine the availability of a consultant knowing that he is not free between 12:00 and 14:00. This translates into:  <\/em><strong>IF <\/strong>the <a href=\"https:\/\/support.botnation.ai\/en\/date-variables-and-functions\/\">date variable<\/a> &#8220;bn_date_hour&#8221; \u226512 <strong>AND<\/strong> <strong>IF <\/strong>the variable &#8220;bn_date_hour&#8221; &lt;14 <strong>\n  <em>THEN<\/em>\n<\/strong><em> the advisor is not available (the variable &#8220;expert_advisor&#8221; will take the value &#8220;Busy&#8221;).<\/em><\/p>\n\n\n\n<p><strong>We can, of course, add up the Multiple Conditions:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>If it happens A <strong>AND<\/strong> B <strong>AND<\/strong> C <strong>AND<\/strong> D, etc then&#8230;<\/li><li>If it happens A <strong>OR<\/strong> B <strong>OR<\/strong> C <strong>OR<\/strong> D, etc then&#8230;<\/li><\/ul>\n\n\n\n<p>The <strong>SINON<\/strong> part is optional. You can therefore create a sequence of IF Conditions on <a href=\"https:\/\/support.botnation.ai\/en\/change-the-case-of-a-variable\/\">the same variable to cover different cases<\/a>.  <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>ATTENTION  <\/strong><br>Remember that the chatbot follows the instructions in the order they are given in the sequence. So if you are combining IF conditions, make sure that one does not cancel out the other. Also, don&#8217;t forget to include the case where no conditions are met.  <strong>If a condition is valid and then executes a redirection to another sequence, all other conditions or functions underneath it will not be executed.<\/strong><\/p><\/blockquote>\n\n\n\n<p><strong>Example of cumulative conditions:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/cumulative-421x1024.png\" alt=\"\" class=\"wp-image-494\" width=\"723\" height=\"1759\" srcset=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/cumulative-421x1024.png 421w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/cumulative-123x300.png 123w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/cumulative-768x1869.png 768w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/cumulative-631x1536.png 631w, https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/cumulative.png 824w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/figure>\n\n\n\n<p><em>In this example, we use the &#8220;IF Condition&#8221; feature to display a different text depending on the user&#8217;s score (between 1 and 5).<\/em><br><em>The first condition displays &#8220;There are days without.&#8221; when the score is less than or equal to 2.<\/em><br><em>The second condition displays &#8220;Not bad but can do better&#8221; if the score is 3.<\/em><br><em>The last condition displays &#8220;Bravo!&#8221; when the score is greater than or equal to 4.<\/em><\/p>\n\n\n\n<p><strong>With a good knowledge of <a href=\"https:\/\/support.botnation.ai\/en\/date-variables-and-functions\/\">the variables<\/a>, IF Conditions become a very powerful tool and are quickly indispensable when you want to personalize the user experience.<\/strong><\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Launch an action in your chatbot based on a condition on a variable 1. What is an IF Condition on Botnation? In a word, this is what will allow your &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,23,12,29],"tags":[],"class_list":["post-473","post","type-post","status-publish","format-standard","hentry","category-facebook-messenger-en","category-features","category-variables","category-web-chatbot-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The IF Condition feature - Botnation - Support<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The IF Condition feature - Botnation - Support\" \/>\n<meta property=\"og:description\" content=\"Launch an action in your chatbot based on a condition on a variable 1. What is an IF Condition on Botnation? In a word, this is what will allow your &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/\" \/>\n<meta property=\"og:site_name\" content=\"Botnation - Support\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-05T12:56:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-12T10:25:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-60.png\" \/>\n<meta name=\"author\" content=\"Julien\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Julien\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/\"},\"author\":{\"name\":\"Julien\",\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/#\\\/schema\\\/person\\\/44cb7587fa3e56f46b36d9320f6fcbfa\"},\"headline\":\"The IF Condition feature\",\"datePublished\":\"2022-09-05T12:56:19+00:00\",\"dateModified\":\"2022-09-12T10:25:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/\"},\"wordCount\":815,\"publisher\":{\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/support.botnation.ai\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-60.png\",\"articleSection\":[\"Facebook Messenger\",\"Features\",\"Variables\",\"Web-Chatbot\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/\",\"url\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/\",\"name\":\"The IF Condition feature - Botnation - Support\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/support.botnation.ai\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-60.png\",\"datePublished\":\"2022-09-05T12:56:19+00:00\",\"dateModified\":\"2022-09-12T10:25:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/#primaryimage\",\"url\":\"https:\\\/\\\/support.botnation.ai\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-60.png\",\"contentUrl\":\"https:\\\/\\\/support.botnation.ai\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-60.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/the-if-condition-feature\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The IF Condition feature\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/\",\"name\":\"Botnation - Support\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/#organization\",\"name\":\"Botnation - Support\",\"url\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/support.botnation.ai\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/botnation-mini.png\",\"contentUrl\":\"https:\\\/\\\/support.botnation.ai\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/botnation-mini.png\",\"width\":266,\"height\":70,\"caption\":\"Botnation - Support\"},\"image\":{\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/support.botnation.ai\\\/en\\\/#\\\/schema\\\/person\\\/44cb7587fa3e56f46b36d9320f6fcbfa\",\"name\":\"Julien\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dd63389552b617a59bee8f80d7a256153ba73233356d0ccdd6dc2b8c8b984f98?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dd63389552b617a59bee8f80d7a256153ba73233356d0ccdd6dc2b8c8b984f98?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dd63389552b617a59bee8f80d7a256153ba73233356d0ccdd6dc2b8c8b984f98?s=96&d=mm&r=g\",\"caption\":\"Julien\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The IF Condition feature - Botnation - Support","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":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/","og_locale":"en_US","og_type":"article","og_title":"The IF Condition feature - Botnation - Support","og_description":"Launch an action in your chatbot based on a condition on a variable 1. What is an IF Condition on Botnation? In a word, this is what will allow your &hellip;","og_url":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/","og_site_name":"Botnation - Support","article_published_time":"2022-09-05T12:56:19+00:00","article_modified_time":"2022-09-12T10:25:18+00:00","og_image":[{"url":"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-60.png","type":"","width":"","height":""}],"author":"Julien","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Julien","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/#article","isPartOf":{"@id":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/"},"author":{"name":"Julien","@id":"https:\/\/support.botnation.ai\/en\/#\/schema\/person\/44cb7587fa3e56f46b36d9320f6fcbfa"},"headline":"The IF Condition feature","datePublished":"2022-09-05T12:56:19+00:00","dateModified":"2022-09-12T10:25:18+00:00","mainEntityOfPage":{"@id":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/"},"wordCount":815,"publisher":{"@id":"https:\/\/support.botnation.ai\/en\/#organization"},"image":{"@id":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/#primaryimage"},"thumbnailUrl":"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-60.png","articleSection":["Facebook Messenger","Features","Variables","Web-Chatbot"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/","url":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/","name":"The IF Condition feature - Botnation - Support","isPartOf":{"@id":"https:\/\/support.botnation.ai\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/#primaryimage"},"image":{"@id":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/#primaryimage"},"thumbnailUrl":"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-60.png","datePublished":"2022-09-05T12:56:19+00:00","dateModified":"2022-09-12T10:25:18+00:00","breadcrumb":{"@id":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/#primaryimage","url":"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-60.png","contentUrl":"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/09\/image-60.png"},{"@type":"BreadcrumbList","@id":"https:\/\/support.botnation.ai\/en\/the-if-condition-feature\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/support.botnation.ai\/en\/"},{"@type":"ListItem","position":2,"name":"The IF Condition feature"}]},{"@type":"WebSite","@id":"https:\/\/support.botnation.ai\/en\/#website","url":"https:\/\/support.botnation.ai\/en\/","name":"Botnation - Support","description":"","publisher":{"@id":"https:\/\/support.botnation.ai\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/support.botnation.ai\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/support.botnation.ai\/en\/#organization","name":"Botnation - Support","url":"https:\/\/support.botnation.ai\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/support.botnation.ai\/en\/#\/schema\/logo\/image\/","url":"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/08\/botnation-mini.png","contentUrl":"https:\/\/support.botnation.ai\/wp-content\/uploads\/2022\/08\/botnation-mini.png","width":266,"height":70,"caption":"Botnation - Support"},"image":{"@id":"https:\/\/support.botnation.ai\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/support.botnation.ai\/en\/#\/schema\/person\/44cb7587fa3e56f46b36d9320f6fcbfa","name":"Julien","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dd63389552b617a59bee8f80d7a256153ba73233356d0ccdd6dc2b8c8b984f98?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dd63389552b617a59bee8f80d7a256153ba73233356d0ccdd6dc2b8c8b984f98?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dd63389552b617a59bee8f80d7a256153ba73233356d0ccdd6dc2b8c8b984f98?s=96&d=mm&r=g","caption":"Julien"}}]}},"_links":{"self":[{"href":"https:\/\/support.botnation.ai\/en\/wp-json\/wp\/v2\/posts\/473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.botnation.ai\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.botnation.ai\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.botnation.ai\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.botnation.ai\/en\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":0,"href":"https:\/\/support.botnation.ai\/en\/wp-json\/wp\/v2\/posts\/473\/revisions"}],"wp:attachment":[{"href":"https:\/\/support.botnation.ai\/en\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.botnation.ai\/en\/wp-json\/wp\/v2\/categories?post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.botnation.ai\/en\/wp-json\/wp\/v2\/tags?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}