1<!doctype html><html lang=en dir=ltr class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-branching" data-has-hydrated=false><head><meta charset=UTF-8> 2<!-- This site is hosted on Netlify. Anyone can build and deploy a site 3 like this one for free: https://netlify.new/?utm_campaign=loops&utm_source=ai-legible&utm_medium=owned&utm_content=comment&utm_id=636a1b7a-1cdb-4986-9540-f22a191f7599 4 Netlify hosting facts for this site: static/SSR served via Netlify Edge. --><meta name=generator content="Docusaurus v3.10.2"><title data-rh=true>Branching | Acme Inc Workflow Builder</title><meta data-rh=true name=viewport content="width=device-width, initial-scale=1.0"/><meta data-rh=true name=twitter:card content=summary_large_image /><meta data-rh=true property=og:url content=https://docs.acme.com/branching /><meta data-rh=true property=og:locale content=en /><meta data-rh=true name=docusaurus_locale content=en /><meta data-rh=true name=docsearch:language content=en /><meta data-rh=true name=docusaurus_version content=current /><meta data-rh=true name=docusaurus_tag content=docs-default-current /><meta data-rh=true name=docsearch:version content=current /><meta data-rh=true name=docsearch:docusaurus_tag content=docs-default-current /><meta data-rh=true property=og:title content="Branching | Acme Inc Workflow Builder"/><meta data-rh=true name=description content="You can create logical branches within your Workflow based on conditional logic"/><meta data-rh=true property=og:description content="You can create logical branches within your Workflow based on conditional logic"/><link data-rh=true rel=icon href=/img/example-logo.svg /><link data-rh=true rel=canonical href=https://docs.acme.com/branching /><link data-rh=true rel=alternate href=https://docs.acme.com/branching hreflang=en /><link data-rh=true rel=alternate href=https://docs.acme.com/branching hreflang=x-default />
4<script data-rh=true type=application/ld+json>{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","item":"https://docs.acme.com/branching","name":"Branching","position":1}]}</script>
4<link rel=stylesheet href=/assets/css/styles.e19969b2.css />
4<script src=/assets/js/runtime~main.313494e9.js defer></script>
4<script src=/assets/js/main.a6a42398.js defer></script>
4</head><body><svg style="display: none;"><defs> 5<symbol id=theme-svg-external-link viewBox="0 0 24 24"><path fill=currentColor d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"/></symbol> 6</defs></svg>
7<script>!function(){var t=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme-70e")}catch(t){}}();document.documentElement.setAttribute("data-theme",t||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")),document.documentElement.setAttribute("data-theme-choice",t||"system")}(),function(){try{for(var[t,e]of new URLSearchParams(window.location.search).entries())if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script>
7<div id=__docusaurus><link rel=preload as=image href=/img/example-logo.svg /><div role=region aria-label="Skip to main content"><a class=skipToContent_fXgn href=#__docusaurus_skipToContent_fallback>Skip to main content</a></div><nav aria-label=Main class="theme-layout-navbar navbar navbar--fixed-top"><div class=navbar__inner><div class="theme-layout-navbar-left navbar__items"><a class=navbar__brand href=/><div class=navbar__logo><img src=/img/example-logo.svg alt="Acme logo" class="themedComponent_mlkZ themedComponent--light_NVdE"/><img src=/img/example-logo.svg alt="Acme logo" class="themedComponent_mlkZ themedComponent--dark_xIcU"/></div><b class="navbar__title text--truncate">Acme Workflow Builder</b></a></div><div class="theme-layout-navbar-right navbar__items navbar__items--right"><div class="toggle_vylO colorModeToggle_DEke"><button class="clean-btn toggleButton_gllP toggleButtonDisabled_aARS" type=button disabled title="system mode" aria-label="Switch between dark and light mode (currently system mode)"><svg viewBox="0 0 24 24" width=24 height=24 aria-hidden=true class="toggleIcon_g3eP lightToggleIcon_pyhR"><path fill=currentColor d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"/></svg><svg viewBox="0 0 24 24" width=24 height=24 aria-hidden=true class="toggleIcon_g3eP darkToggleIcon_wfgR"><path fill=currentColor d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"/></svg><svg viewBox="0 0 24 24" width=24 height=24 aria-hidden=true class="toggleIcon_g3eP systemToggleIcon_QzmC"><path fill=currentColor d="m12 21c4.971 0 9-4.029 9-9s-4.029-9-9-9-9 4.029-9 9 4.029 9 9 9zm4.95-13.95c1.313 1.313 2.05 3.093 2.05 4.95s-0.738 3.637-2.05 4.95c-1.313 1.313-3.093 2.05-4.95 2.05v-14c1.857 0 3.637 0.737 4.95 2.05z"/></svg></button></div><div class=navbarSearchContainer_Bca1></div></div></div><div role=presentation class=navbar-sidebar__backdrop></div></nav><div id=__docusaurus_skipToContent_fallback class="theme-layout-main main-wrapper mainWrapper_z2l0"><div class=docsWrapper_hBAB><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_sjWU" type=button></button><div class=docRoot_UBD9><aside class="theme-doc-sidebar-container docSidebarContainer_YfHR"><div class=sidebarViewport_aRkj><div class=sidebar_njMd><nav aria-label="Docs sidebar" class="menu thin-scrollbar menu_SIkG"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class=menu__link href=/><span class=linkLabel_WmDU>Acme Inc's Workflow Builder</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class=menu__link href=/get-started><span class=linkLabel_WmDU>Getting Started</span></a><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class=menu__list-item-collapsible><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" role=button aria-expanded=true href=/building><span class=categoryLinkLabel_W154>Workflow Builder</span></a></div><ul class=menu__list><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class=menu__link tabindex=0 href=/building><span class=linkLabel_WmDU>Building Workflows</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link menu__link--active" aria-current=page tabindex=0 href=/branching><span class=linkLabel_WmDU>Branching</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class=menu__link tabindex=0 href=/looping><span class=linkLabel_WmDU>Looping</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class=menu__link tabindex=0 href=/triggering><span class=linkLabel_WmDU>Triggering Workflows</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class=menu__link tabindex=0 href=/testing><span class=linkLabel_WmDU>Testing Workflows</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class=menu__link tabindex=0 href=/enabling><span class=linkLabel_WmDU>Enabling Workflows</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class=menu__link tabindex=0 href=/oauth2><span class=linkLabel_WmDU>OAuth 2.0 Connections</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class=menu__link tabindex=0 href=/error-handling><span class=linkLabel_WmDU>Error Handling</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class=menu__link tabindex=0 href=/http-requests><span class=linkLabel_WmDU>HTTP Requests</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class=menu__link tabindex=0 href=/custom-code><span class=linkLabel_WmDU>
7Custom Code</span></a><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class=menu__link tabindex=0 href=/runner-environment><span class=linkLabel_WmDU>Runner Environment and Limits</span></a></ul><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class=menu__list-item-collapsible><a class="categoryLink_byQd menu__link menu__link--sublist" href=/category/connectors><span class=categoryLinkLabel_W154>Connectors</span></a><button aria-label="Expand sidebar category 'Connectors'" aria-expanded=false type=button class="clean-btn menu__caret"></button></div></ul></nav></div></div></aside><main class=docMainContainer_TBSr><div class="container padding-top--md padding-bottom--lg"><div class=row><div class="col docItemCol_VOVn"><div class=docItemContainer_Djhp><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_Z_bl" aria-label=Breadcrumbs><ul class=breadcrumbs><li class=breadcrumbs__item><a aria-label="Home page" class=breadcrumbs__link href=/><svg viewBox="0 0 24 24" class=breadcrumbHomeIcon_YNFT><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill=currentColor /></svg></a><li class=breadcrumbs__item><span class=breadcrumbs__link>Workflow Builder</span><li class="breadcrumbs__item breadcrumbs__item--active"><span class=breadcrumbs__link>Branching</span></ul></nav><div class="tocCollapsible_ETCw theme-doc-toc-mobile tocMobile_ITEo"><button type=button class="clean-btn tocCollapsibleButton_TO0P">On this page</button></div><div class="theme-doc-markdown markdown"><header><h1>Branching</h1></header><p>The <a class="" href=/connectors/branch>branch</a> tool allows you to add branching logic to your Workflow. 8Think of <strong>branches</strong> as logical paths that your Workflow can take. 9Given some information about a previous step's results, your Workflow can follow one of many paths.</p> 10<p>Branch steps are useful when you need to conditionally execute certain steps. 11Here are a couple of examples of what you can accomplish with branching:</p> 12<p><strong>Example 1:</strong> The <a class="" href=/triggering#universal-webhook-triggers>webhook requests</a> your Workflow receives could contain a "Widget Created", "Widget Updated", or "Widget Deleted" event. 13You need to execute a series of steps depending on which event type was received.</p> 14<p><strong>Example 2:</strong> You want to <a href=https://www.sqlite.org/lang_upsert.html target=_blank rel="noopener noreferrer" class="">upsert</a> data into a system that doesn't support upsert. 15You can check if a record exists and branch into "add a new record" or "update the existing record" branches depending on whether the record exists.</p> 16<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=branching-based-on-a-value>Branching based on a value<a href=#branching-based-on-a-value class=hash-link aria-label="Direct link to Branching based on a value" title="Direct link to Branching based on a value" translate=no>â</a></h2> 17<p>A simple branch action branches on a <strong>value</strong>. 18If you've done any programming, it's very similar to the <code>switch</code>/<code>case</code> construct present in many programming languages. 19You declare "this step result will have one of these values - follow a branch based on which value it is."</p> 20<p>Consider <strong>Example 1</strong> above.</p> 21<p>Suppose the webhook request you receive has an HTTP header, <code>event</code>, that can be one of three values: <code>widget-created</code>, <code>widget-updated</code>, or <code>widget-deleted</code>. 22You can look at that value and branch accordingly.</p> 23<p><img decoding=async loading=lazy alt="Branch if value equals" src=/assets/images/branch-if-value-equals-330b1e26c3a154163f53fb90725c799a.png width=1458 height=950 class=img_ev3q /></p> 24<p>If your Workflow receives a <code>widget-created</code> event header, it will follow the "Created" branch, etc.</p> 25<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=branching-based-on-a-condition>Branching based on a condition<a href=#branching-based-on-a-condition class=hash-link aria-label="Direct link to Branching based on a condition" title="Direct link to Branching based on a condition" translate=no>â</a></h2> 26<p>The <a class="" href=/connectors/branch#branchonexpression>If Condition is Met</a> action allows you to create branches within your Workflow based on more complex inputs.
27You can compare step results or static values using <a href=#comparison-operators class="">comparison operators</a> (like "does not equal" or "less than") and follow a branch based on the results of the comparisons.</p> 28<p><img decoding=async loading=lazy alt="Branch if condition is met" src=/assets/images/branch-if-condition-met-2b6bfd023739ec2691b19823e76ee49c.png width=1362 height=1096 class=img_ev3q /></p> 29<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id=comparison-operators>Comparison operators<a href=#comparison-operators class=hash-link aria-label="Direct link to Comparison operators" title="Direct link to Comparison operators" translate=no>â</a></h3> 30<p>Comparison operators allow you to compare two properties to one another. 31You can test if the two values are <a href=#equals class="">equal</a>, if one value is <a href=#contained-in class="">contained</a> within the other (assuming the second value is a list), if one timestamp is <a href=#is-before-datetime class="">before</a> another timestamp, etc.</p> 32<p>If your comparison evaluates to <code>true</code> (for example, if you use the <code>equals</code> operator and both values are <code>5</code>), the branch associated with that comparison within your Workflow is followed.</p> 33<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=equals>Equals<a href=#equals class=hash-link aria-label="Direct link to Equals" title="Direct link to Equals" translate=no>â</a></h4> 34<p>The <strong>equals</strong> operator evaluates if two fields are equal to one another, regardless of type.</p> 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<th>Comments<tbody><tr><td><code>5.2</code><td><code>5.2</code><td style=text-align:center><code>true</code><td><tr><td><code>5.2</code><td><code>5</code><td style=text-align:center><code>false</code><td><tr><td><code>"5.2"</code><td><code>5.2</code><td style=text-align:center><code>true</code><td>Strings are cast to numbers when compared to numbers<tr><td><code>"Hello"</code><td><code>"Hello"</code><td style=text-align:center><code>true</code><td><tr><td><code>"Hello"</code><td><code>"hello"</code><td style=text-align:center><code>false</code><td>String comparison is case-sensitive<tr><td><code>false</code><td><code>0</code><td style=text-align:center><code>true</code><td>Boolean <code>false</code> evaluates to <code>0</code>, and <code>true</code> evaluates to <code>1</code>.<tr><td><code>[1,2,3]</code><td><code>[1,2,3]</code><td style=text-align:center><code>true</code><td>Arrays whose elements are the same are considered equal<tr><td><code>{"foo":"bar"}</code><td><code>{"foo":"bar"}</code><td style=text-align:center><code>true</code><td>Objects with the same keys/values are equal</table> 95<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=does-not-equal>Does not equal<a href=#does-not-equal class=hash-link aria-label="Direct link to Does not equal" title="Direct link to Does not equal" translate=no>â</a></h4> 96<p>The <strong>does not equal</strong> operator evaluates if two fields are <em>not</em> equal to one another, regardless of type.</p> 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<tbody><tr><td><code>5.3</code><td><code>5.2</code><td style=text-align:center>true<tr><td><code>[1,2,3]</code><td><code>[1,2,4]</code><td style=text-align:center>true</table> 118<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=is-greater-than>Is greater than<a href=#is-greater-than class=hash-link aria-label="Direct link to Is greater than" title="Direct link to Is greater than" translate=no>â</a></h4> 119<p>The <strong>is greater than</strong> operator evaluates if the left field is greater than the right field, and is an implementation of the JavaScript <a href=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Greater_than target=_blank rel="noopener noreferrer" class="">greater than operator</a>.</p> 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<th>Comments<tbody><tr><td><code>5.2</code><td><code>5.3</code><td style=text-align:center><code>false</code><td><tr><td><code>5.3</code><td><code>5.3</code><td style=text-align:center><code>false</code><td>The values are equal; one is not greater than the other<tr><td><code>"5.3"</code><td><code>5.2</code><td style=text-align:center><code>true</code><td>Strings are cast to numbers when compared to numbers<tr><td><code>"Hello"</code><td><code>"World"</code><td style=text-align:center><code>false</code><td>Strings are compared alphabetically - <code>"Hello"</code> does not occur after <code>"World"</code><tr><td><code>"hello"</code><td><code>"World"</code><td style=text-align:center><code>true</code><td>The ASCII value for <code>"h"</code> occurs <a href=https://www.asciitable.com/ target=_blank rel="noopener noreferrer" class="">after</a> <code>"W"</code><tr><td><code>true</code><td><code>false</code><td style=text-align:center><code>true</code><td><code>true</code> (1) is greater than <code>false</code> (0)</table> 168<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=is-greater-than-or-equal-to>Is greater than or equal to<a href=#is-greater-than-or-equal-to class=hash-link aria-label="Direct link to Is greater than or equal to" title="Direct link to Is greater than or equal to" translate=no>â</a></h4> 169<p>The <strong>is greater than or equal to</strong> operator is similar to <strong>is greater than</strong>, but also returns true if the values being compared are equal to one another.</p> 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187<table><thead><tr><th>
187Left Field<th>Right Field<th style=text-align:center>Result<th>Comments<tbody><tr><td><code>5.3</code><td><code>"5.3"</code><td style=text-align:center><code>true</code><td>Strings are cast to numbers when compared to numbers</table> 188<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=is-less-than>Is less than<a href=#is-less-than class=hash-link aria-label="Direct link to Is less than" title="Direct link to Is less than" translate=no>â</a></h4> 189<p>The <strong>is less than</strong> operator evaluates if the left field is less than the right field.</p> 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<th>Comments<tbody><tr><td><code>3</code><td><code>4</code><td style=text-align:center><code>true</code><td><tr><td><code>"abc"</code><td><code>"daa"</code><td style=text-align:center><code>true</code><td><code>"a"</code> is less than <code>"d"</code> alphabetically</table> 214<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=is-less-than-or-equal-to>Is less than or equal to<a href=#is-less-than-or-equal-to class=hash-link aria-label="Direct link to Is less than or equal to" title="Direct link to Is less than or equal to" translate=no>â</a></h4> 215<p>The <strong>is less than or equal to</strong> operator is similar to <strong>is less than</strong>, but also returns true if the values being compared are equal to one another.</p> 216<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=contained-in>Contained in<a href=#contained-in class=hash-link aria-label="Direct link to Contained in" title="Direct link to Contained in" translate=no>â</a></h4> 217<p>The <strong>contained in</strong> operator evaluates if the value of the left field is contained in the right field. 218The right field must be an array or a string.</p> 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<th>Comments<tbody><tr><td><code>"world"</code><td><code>"Hello, world!"</code><td style=text-align:center><code>true</code><td><tr><td><code>"World"</code><td><code>"Hello, world!"</code><td style=text-align:center><code>false</code><td>String comparison is case-sensitive<tr><td><code>2</code><td><code>[1,2,3]</code><td style=text-align:center><code>true</code><td><tr><td><code>"2"</code><td><code>[1,2,3]</code><td style=text-align:center><code>false</code><td>The string <code>"2"</code> does not occur in the array of numbers <code>[1,2,3]</code></table> 255<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=not-contained-in>Not contained in<a href=#not-contained-in class=hash-link aria-label="Direct link to Not contained in" title="Direct link to Not contained in" translate=no>â</a></h4> 256<p>The <strong>not contained in</strong> operator evaluates if the value of the left field does not appear in the right field.</p> 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<tbody><tr><td><code>2</code><td><code>[1,2,3]</code><td style=text-align:center><code>false</code><tr><td><code>'Hi'</code><td><code>'Hello'</code><td style=text-align:center><code>true</code></table> 278<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=is-empty>Is empty<a href=#is-empty class=hash-link aria-label="Direct link to Is empty" title="Direct link to Is empty" translate=no>â</a></h4> 279<p>The <strong>is empty</strong> operator evaluates if the given value is an empty string or an empty array.</p> 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305<table><thead><tr><th>Field<th style=text-align:center>Result<tbody><tr><td><code>""</code><td style=text-align:center><code>true</code><tr><td><code>"hello"</code><td style=text-align:center><code>false</code><tr><td><code>[]</code><td style=text-align:center><code>true</code><tr><td><code>[1,2,3]</code><td style=text-align:center><code>false</code></table> 306<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=exactly-matches>Exactly matches<a href=#exactly-matches class=hash-link aria-label="Direct link to Exactly matches" title="Direct link to Exactly matches" translate=no>â</a></h4> 307<p>The <strong>exactly matches</strong> operator evaluates if the two fields are equal to one another, taking type of the values into consideration.</p> 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325<table><thead><tr><th>
325Left Field<th>Right Field<th style=text-align:center>Result<th>Comments<tbody><tr><td><code>"5"</code><td><code>5</code><td style=text-align:center><code>false</code><td>The string <code>"5"</code> is not equal to the number <code>5</code></table> 326<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=does-not-exactly-match>Does not exactly match<a href=#does-not-exactly-match class=hash-link aria-label="Direct link to Does not exactly match" title="Direct link to Does not exactly match" translate=no>â</a></h4> 327<p>The <strong>does not exactly match</strong> operator evaluates if the if the two fields are not equal to one another, taking type of the values into consideration.</p> 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<th>Comments<tbody><tr><td><code>"5"</code><td><code>5</code><td style=text-align:center><code>true</code><td>The string <code>"5"</code> is not equal to the number <code>5</code></table> 346<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=starts-the-string>Starts the string<a href=#starts-the-string class=hash-link aria-label="Direct link to Starts the string" title="Direct link to Starts the string" translate=no>â</a></h4> 347<p>The <strong>starts the string</strong> operator evaluates if the the right field's value begins with the left field's value. 348Both right and left values must be strings.</p> 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<th>Comments<tbody><tr><td><code>"Test"</code><td><code>"Testing Value"</code><td style=text-align:center><code>true</code><td><tr><td><code>"test"</code><td><code>"Testing Value"</code><td style=text-align:center><code>false</code><td>Comparisons are case-sensitive<tr><td><code>"Test"</code><td><code>"A Testing Value"</code><td style=text-align:center><code>false</code><td>The right field must start with the left value (not merely contain it)</table> 379<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=does-not-start-the-string>Does not start the string<a href=#does-not-start-the-string class=hash-link aria-label="Direct link to Does not start the string" title="Direct link to Does not start the string" translate=no>â</a></h4> 380<p>The <strong>does not start the string</strong> operator returns the opposite of the <strong>starts with</strong> operator.</p> 381<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=ends-the-string>Ends the string<a href=#ends-the-string class=hash-link aria-label="Direct link to Ends the string" title="Direct link to Ends the string" translate=no>â</a></h4> 382<p>The <strong>ends the string</strong> operator evaluates if the right field ends with the left field. 383Both right and left values must be strings.</p> 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<tbody><tr><td><code>orld!</code><td><code>Hello, World!</code><td style=text-align:center><code>true</code><tr><td><code>orld</code><td><code>Hello, World!</code><td style=text-align:center><code>false</code></table> 405<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=does-not-end-the-string>Does not end the string<a href=#does-not-end-the-string class=hash-link aria-label="Direct link to Does not end the string" title="Direct link to Does not end the string" translate=no>â</a></h4> 406<p>The <strong>does not end the string</strong> operator returns the opposite of the <strong>ends with</strong> operator.</p> 407<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=is-after-datetime>Is after (date/time)<a href=#is-after-datetime class=hash-link aria-label="Direct link to Is after (date/time)" title="Direct link to Is after (date/time)" translate=no>â</a></h4> 408<p>The <strong>is after (date/time)</strong> operator attempts to parse the left and right fields as dates, and evaluates if the left field occurs after the right field.</p> 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<th>Comments<tbody><tr><td><code>"2021-03-20"</code><td><code>"2021-04-13"</code><td style=text-align:center><code>false</code><td><tr><td><code>"2021-03-20T12:50:30.105Z"</code><td><code>"2021-03-20T11:52:21.881Z"</code><td style=text-align:center><code>true</code><td>When dates are equivalent, time is compared<tr><td><code>"2021-03-20"</code><td><code>1631568050</code><td style=text-align:center><code>false</code><td><code>1631568050</code> is the UNIX epoch time for 2021-09-13, which occurs after 2021-03-05</table> 439<blockquote> 440<p><strong>Note: Accepted DateTime Formats</strong></p> 441<p>The time comparison operators accept date/times as ISO strings (like <code>2021-03-20</code> or <code>2021-03-20T11:52:21.881Z</code>), Unix epoch timestamps in milliseconds (for example, the number <code>1631568050</code> represents a time in 2021-09-13), or <code>
441Date()</code> JavaScript objects.</p> 442</blockquote> 443<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=is-before-datetime>Is before (date/time)<a href=#is-before-datetime class=hash-link aria-label="Direct link to Is before (date/time)" title="Direct link to Is before (date/time)" translate=no>â</a></h4> 444<p>The <strong>is before (date/time)</strong> operator attempts to parse the left and right fields as dates, and evaluates if the left field occurs before the right field.</p> 445<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=is-the-same-datetime>Is the same (date/time)<a href=#is-the-same-datetime class=hash-link aria-label="Direct link to Is the same (date/time)" title="Direct link to Is the same (date/time)" translate=no>â</a></h4> 446<p>The <strong>is the same (date/time)</strong> operator attempts to parse the left and right fields as dates, and evaluates if the timestamps are identical.</p> 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476<table><thead><tr><th>Left Field<th>Right Field<th style=text-align:center>Result<th>Comments<tbody><tr><td><code>"2021-03-20T12:50:30.105Z"</code><td><code>"2021-03-20T12:50:30.105Z"</code><td style=text-align:center><code>true</code><td><tr><td><code>"2021-03-20T12:50:30Z"</code><td><code>1616244630000</code><td style=text-align:center><code>true</code><td><code>1616244630</code> is the millisecond UNIX epoch representation of <code>March 20, 2021 12:50:30</code><tr><td><code>"2021-03-20T12:50:30Z"</code><td><code>"2021-03-20T12:50:31Z"</code><td style=text-align:center><code>false</code><td></table> 477<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=is-true>Is true<a href=#is-true class=hash-link aria-label="Direct link to Is true" title="Direct link to Is true" translate=no>â</a></h4> 478<p>The <strong>is true</strong> operator evaluates if an input field is "truthy".</p> 479<p>Common "truthy" values include <code>true</code>, <code>"true"</code>, <code>"True"</code>, <code>"Yes"</code>, <code>"yes"</code>, <code>"Y"</code> and <code>"y"</code>.</p> 480<p>Common "falsy" values include <code>false</code>, <code>"false"</code>, <code>"False"</code>, <code>"No"</code>, <code>"no"</code>, <code>"N"</code> and <code>"n"</code> and evaluate to <code>false</code>. 481Other values that evaluate to <code>false</code> are <code>0</code>, <code>null</code>, <code>undefined</code>, <code>NaN</code> and <code>""</code>.</p> 482<p>All other values (a non-zero number, a non-empty string, any array or object, etc.) evaluates to <code>true</code>.</p> 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536<table><thead><tr><th>Field<th style=text-align:center>Result<tbody><tr><td><code>"Yes"</code><td style=text-align:center><code>true</code><tr><td><code>"True"</code><td style=text-align:center><code>true</code><tr><td><code>[]</code><td style=text-align:center><code>true</code><tr><td><code>{}</code><td style=text-align:center><code>true</code><tr><td><code>"Hello"</code><td style=text-align:center><code>true</code><tr><td><code>-5</code><td style=text-align:center><code>true</code><tr><td><code>"n"</code><td style=text-align:center><code>false</code><tr><td><code>false</code><td style=text-align:center><code>false</code><tr><td><code>""</code><td style=text-align:center><code>false</code><tr><td><code>null</code><td style=text-align:center><code>false</code><tr><td><code>0</code><td style=text-align:center><code>false</code></table> 537<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=is-false>Is false<a href=#is-false class=hash-link aria-label="Direct link to Is false" title="Direct link to Is false" translate=no>â</a></h4> 538<p>The <strong>is false</strong> operator returns the opposite of the <strong>is true</strong> operator.</p> 539<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=does-not-exist>Does not exist<a href=#does-not-exist class=hash-link aria-label="Direct link to Does not exist" title="Direct link to Does not exist" translate=no>â</a></h4> 540<p>The <strong>does not exist</strong> operator evaluates to <code>true</code> if the presented value is one of the following: <code>undefined</code>, <code>null</code>, <code>0</code>, <code>NaN</code>, <code>false</code> or <code>""</code>.</p> 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566<table><thead><tr><th>
566Field<th style=text-align:center>Result<tbody><tr><td><code>undefined</code><td style=text-align:center><code>true</code><tr><td><code>NaN</code><td style=text-align:center><code>true</code><tr><td><code>1</code><td style=text-align:center><code>false</code><tr><td><code>"Hello"</code><td style=text-align:center><code>false</code></table> 567<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id=exists>Exists<a href=#exists class=hash-link aria-label="Direct link to Exists" title="Direct link to Exists" translate=no>â</a></h4> 568<p>The <strong>exists</strong> operator returns the opposite of the <code>does not exist</code> operator.</p> 569<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id=combining-multiple-comparison-operators>Combining multiple comparison operators<a href=#combining-multiple-comparison-operators class=hash-link aria-label="Direct link to Combining multiple comparison operators" title="Direct link to Combining multiple comparison operators" translate=no>â</a></h3> 570<p>Multiple expressions can be grouped together with <strong>And</strong> or <strong>Or</strong> clauses, which execute like programming <strong>and</strong> and <strong>or</strong> clauses. 571Take, for example, this programming expression:</p> 572<div class="language-txt codeBlockContainer_Ckt0 theme-code-block" style=--prism-color:#393A34;--prism-background-color:#f6f8fa><div class=codeBlockContent_QJqH><pre tabindex=0 class="prism-code language-txt codeBlock_bY9V thin-scrollbar" style=color:#393A34;background-color:#f6f8fa><code class=codeBlockLines_e6Vv><div class=token-line style=color:#393A34><span class="token plain">if ((foo > 500 and bar <= 20) or ("b" in ["a","b","c"]))</span><br/></div></code></pre></div></div> 573<p>The same logic can be represented with a group of conditionals in an <strong>If Condition is Met</strong> action:</p> 574<p><img decoding=async loading=lazy alt="Combining comparison operators" src=/assets/images/combining-comparison-operators-f4b72662e0f129f34d46762096606e17.png width=1220 height=1283 class=img_ev3q /></div></article><nav class="docusaurus-mt-lg pagination-nav" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href=/building><div class=pagination-nav__sublabel>Previous</div><div class=pagination-nav__label>Building Workflows</div></a><a class="pagination-nav__link pagination-nav__link--next" href=/looping><div class=pagination-nav__sublabel>Next</div><div class=pagination-nav__label>Looping</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href=#branching-based-on-a-value class="table-of-contents__link toc-highlight">Branching based on a value</a><li><a href=#branching-based-on-a-condition class="table-of-contents__link toc-highlight">Branching based on a condition</a><ul><li><a href=#comparison-operators class="table-of-contents__link toc-highlight">Comparison operators</a><ul><li><a href=#equals class="table-of-contents__link toc-highlight">Equals</a><li><a href=#does-not-equal class="table-of-contents__link toc-highlight">Does not equal</a><li><a href=#is-greater-than class="table-of-contents__link toc-highlight">Is greater than</a><li><a href=#is-greater-than-or-equal-to class="table-of-contents__link toc-highlight">Is greater than or equal to</a><li><a href=#is-less-than class="table-of-contents__link toc-highlight">Is less than</a><li><a href=#is-less-than-or-equal-to class="table-of-contents__link toc-highlight">Is less than or equal to</a><li><a href=#contained-in class="table-of-contents__link toc-highlight">Contained in</a><li><a href=#not-contained-in class="table-of-contents__link toc-highlight">Not contained in</a><li><a href=#is-empty class="table-of-contents__link toc-highlight">Is empty</a><li><a href=#exactly-matches class="table-of-contents__link toc-highlight">Exactly matches</a><li><a href=#does-not-exactly-match class="table-of-contents__link toc-highlight">Does not exactly match</a><li><a href=#starts-the-string class="table-of-contents__link toc-highlight">Starts the string</a><li><a href=#does-not-start-the-string class="table-of-contents__link toc-highlight">Does not start the string</a><li><a href=#ends-the-string class="table-of-contents__link toc-highlight">Ends the string</a><li><a href=#does-not-end-the-string class="table-of-contents__link toc-highlight">Does not end the string</a><li><a href=#is-after-datetime class="table-of-contents__link toc-highlight">Is after (date/time)</a><li>
574<a href=#is-before-datetime class="table-of-contents__link toc-highlight">Is before (date/time)</a><li><a href=#is-the-same-datetime class="table-of-contents__link toc-highlight">Is the same (date/time)</a><li><a href=#is-true class="table-of-contents__link toc-highlight">Is true</a><li><a href=#is-false class="table-of-contents__link toc-highlight">Is false</a><li><a href=#does-not-exist class="table-of-contents__link toc-highlight">Does not exist</a><li><a href=#exists class="table-of-contents__link toc-highlight">Exists</a></ul><li><a href=#combining-multiple-comparison-operators class="table-of-contents__link toc-highlight">Combining multiple comparison operators</a></ul></ul></div></div></div></div></main></div></div></div><footer class="theme-layout-footer footer footer--dark"><div class="container container-fluid"><div class="footer__bottom text--center"><div class=footer__copyright>Copyright © 2026 Acme Inc</div></div></div></footer></div></body>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.