<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Kate's Substack: Make n8n Behave]]></title><description><![CDATA[This is a series of articles describing my day-to-day experience with n8n. Some tips are obvious, some are deeper. Use it as a trigger that would spark your motivation to dig deeper and read docs.]]></description><link>https://katekorneeva.substack.com/s/teeny-tiny-tips-to-make-n8n-behave</link><image><url>https://substackcdn.com/image/fetch/$s_!F6jG!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff93f7cb3-5d9e-498e-89e6-c10ff1237201_1280x1280.png</url><title>Kate&apos;s Substack: Make n8n Behave</title><link>https://katekorneeva.substack.com/s/teeny-tiny-tips-to-make-n8n-behave</link></image><generator>Substack</generator><lastBuildDate>Tue, 12 May 2026 15:19:59 GMT</lastBuildDate><atom:link href="https://katekorneeva.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Ekaterina Korneeva]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[katekorneeva@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[katekorneeva@substack.com]]></itunes:email><itunes:name><![CDATA[Kate Korneeva]]></itunes:name></itunes:owner><itunes:author><![CDATA[Kate Korneeva]]></itunes:author><googleplay:owner><![CDATA[katekorneeva@substack.com]]></googleplay:owner><googleplay:email><![CDATA[katekorneeva@substack.com]]></googleplay:email><googleplay:author><![CDATA[Kate Korneeva]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[White-Box Testing for n8n Workflows]]></title><description><![CDATA[Statement, Branch, Condition and Path Coverage with Examples]]></description><link>https://katekorneeva.substack.com/p/white-box-testing-for-n8n-workflows</link><guid isPermaLink="false">https://katekorneeva.substack.com/p/white-box-testing-for-n8n-workflows</guid><dc:creator><![CDATA[Kate Korneeva]]></dc:creator><pubDate>Sun, 15 Mar 2026 17:32:03 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!-caQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Workflows often become business-critical automation. Without proper coverage, edge cases may fail silently. Automation may appear stable but break only in production when rare data appears.</p><p>Designing test inputs deliberately increases confidence that the workflow behaves correctly in real-world scenarios.</p><h2>The main types of coverage:</h2><ul><li><p><strong>Statement Coverage</strong> ensures every line of logic is executed at least once.</p></li><li><p><strong>Branch Coverage</strong> verifies that every decision (true/false path) is tested.</p></li><li><p><strong>Condition Coverage</strong> checks individual conditions inside complex decisions.</p></li><li><p><strong>Path Coverage</strong> aims to execute every possible logical path through the system.</p></li></ul><h2>The example</h2><p>In this artificial example we use generated coordinates to drive a few decisions.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!o_Yr!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!o_Yr!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png 424w, https://substackcdn.com/image/fetch/$s_!o_Yr!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png 848w, https://substackcdn.com/image/fetch/$s_!o_Yr!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png 1272w, https://substackcdn.com/image/fetch/$s_!o_Yr!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!o_Yr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png" width="1456" height="446" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c722d157-c14a-48e8-840d-f216c527296b_1597x489.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:446,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:89916,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://katekorneeva.substack.com/i/191041803?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!o_Yr!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png 424w, https://substackcdn.com/image/fetch/$s_!o_Yr!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png 848w, https://substackcdn.com/image/fetch/$s_!o_Yr!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png 1272w, https://substackcdn.com/image/fetch/$s_!o_Yr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc722d157-c14a-48e8-840d-f216c527296b_1597x489.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The first if-node <code>If Near Equator</code> checks whether the location is closer to the equator by comparing the absolute latitude to <code>40</code>.</p><p>The second if-node <code>If Lat &gt; 0</code> splits locations into <strong>Northern</strong> and <strong>Southern</strong> hemispheres.</p><p>The last if-node <code>If Lon &gt; 0</code> splits locations into <strong>Eastern</strong> and <strong>Western</strong> hemispheres.</p><p>There are three statements in the workflow:</p><ul><li><p><code>Set near_equator: true</code></p></li><li><p><code>Let's go</code></p></li><li><p><code>Don't go</code></p></li></ul><p>The workflow itself is intentionally useless. It exists purely to illustrate testing strategies.</p><h2>Statement Coverage</h2><p>Here we want every statement to execute at least once.<br>Two items are enough to cover all three statements.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!QOQu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!QOQu!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png 424w, https://substackcdn.com/image/fetch/$s_!QOQu!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png 848w, https://substackcdn.com/image/fetch/$s_!QOQu!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png 1272w, https://substackcdn.com/image/fetch/$s_!QOQu!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!QOQu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png" width="1456" height="454" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:454,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:100634,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://katekorneeva.substack.com/i/191041803?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!QOQu!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png 424w, https://substackcdn.com/image/fetch/$s_!QOQu!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png 848w, https://substackcdn.com/image/fetch/$s_!QOQu!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png 1272w, https://substackcdn.com/image/fetch/$s_!QOQu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb37ffc4e-6a86-46bf-95fe-44f0cfe7e298_1595x497.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><pre><code><code>[
  {
    "location": "-21.499207, -23.747523"
  },
  {
    "location": "-22.443333, 84.650350"
  }
]
</code></code></pre><h2>Branch Coverage</h2><p>Branch coverage requires that <strong>every decision node executes both outcomes at least once</strong>.<br>In this example two items are also enough.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!46HX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!46HX!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png 424w, https://substackcdn.com/image/fetch/$s_!46HX!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png 848w, https://substackcdn.com/image/fetch/$s_!46HX!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png 1272w, https://substackcdn.com/image/fetch/$s_!46HX!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!46HX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png" width="1456" height="455" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:455,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:99789,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://katekorneeva.substack.com/i/191041803?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!46HX!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png 424w, https://substackcdn.com/image/fetch/$s_!46HX!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png 848w, https://substackcdn.com/image/fetch/$s_!46HX!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png 1272w, https://substackcdn.com/image/fetch/$s_!46HX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5318db6a-5b0e-4350-9ede-dd4bf06ca7f7_1597x499.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><pre><code><code>[
  {
    "location": "-41.499207, -123.747523"
  },
  {
    "location": "52.443333, 84.650350"
  }
]
</code></code></pre><h2>Condition Coverage</h2><p>Condition coverage ensures that <strong>each condition inside the if-nodes evaluates to both true and false</strong>.</p><p>Three items are enough to cover all conditions in this workflow.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!a3Xf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!a3Xf!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png 424w, https://substackcdn.com/image/fetch/$s_!a3Xf!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png 848w, https://substackcdn.com/image/fetch/$s_!a3Xf!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png 1272w, https://substackcdn.com/image/fetch/$s_!a3Xf!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!a3Xf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png" width="1456" height="456" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:456,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:103261,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://katekorneeva.substack.com/i/191041803?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!a3Xf!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png 424w, https://substackcdn.com/image/fetch/$s_!a3Xf!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png 848w, https://substackcdn.com/image/fetch/$s_!a3Xf!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png 1272w, https://substackcdn.com/image/fetch/$s_!a3Xf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5986c57c-47e7-43bc-a746-04e33a542aa6_1589x498.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><pre><code><code>[
  {
    "location": "-41.499207, -123.747523"
  },
  {
    "location": "52.443333, -84.650350"
  },
  {
    "location": "12.820717, 50.973975"
  }
]
</code></code></pre><h2>Path Coverage</h2><p>Path coverage is stricter. Every <strong>possible execution path through the workflow</strong> should be tested.</p><p>For this workflow, at least <strong>5 items</strong> are required.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!4N46!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!4N46!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png 424w, https://substackcdn.com/image/fetch/$s_!4N46!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png 848w, https://substackcdn.com/image/fetch/$s_!4N46!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png 1272w, https://substackcdn.com/image/fetch/$s_!4N46!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!4N46!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png" width="1456" height="450" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:450,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:103557,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://katekorneeva.substack.com/i/191041803?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!4N46!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png 424w, https://substackcdn.com/image/fetch/$s_!4N46!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png 848w, https://substackcdn.com/image/fetch/$s_!4N46!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png 1272w, https://substackcdn.com/image/fetch/$s_!4N46!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F122a7cc6-ebff-4bab-b9aa-55474fad3220_1592x492.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Here are the 5 paths outlined with different colors.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!-caQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!-caQ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png 424w, https://substackcdn.com/image/fetch/$s_!-caQ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png 848w, https://substackcdn.com/image/fetch/$s_!-caQ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png 1272w, https://substackcdn.com/image/fetch/$s_!-caQ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!-caQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png" width="1456" height="450" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:450,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:242355,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://katekorneeva.substack.com/i/191041803?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!-caQ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png 424w, https://substackcdn.com/image/fetch/$s_!-caQ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png 848w, https://substackcdn.com/image/fetch/$s_!-caQ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png 1272w, https://substackcdn.com/image/fetch/$s_!-caQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0f60c0b-dae1-4173-bc44-13cda66a179f_1592x492.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Notice how paths 1, 2, 3 and 4 are covering different combinations of outcomes of the if-nodes:</p><ul><li><p>true, true</p></li><li><p>true, false</p></li><li><p>false, true</p></li><li><p>false, false</p></li></ul><pre><code><code>[
  {
    "location": "-41.499207, -123.747523"
  },
  {
    "location": "52.443333, -84.650350"
  },
  {
    "location": "52.443333, 84.650350"
  },
  {
    "location": "12.820717, 50.973975"
  },
  {
    "location": "12.820717, -50.973975"
  }
]
</code></code></pre><h2>Which Coverage Should You Use</h2><p>In practice, different coverage levels have very different value for workflow automation.</p><p><strong>Statement coverage</strong> is usually not enough. It only proves that nodes executed at least once, but it does not guarantee that different decision outcomes were tested.</p><p><strong>Branch coverage</strong> is a good default for most n8n workflows. Ensuring that every if-node executes both the true and false paths already catches a large portion of logic mistakes.</p><p><strong>Condition coverage</strong> becomes useful when decisions contain multiple checks. It ensures that each individual condition can influence the result.</p><p><strong>Path coverage</strong> is the most thorough approach, but it quickly becomes impractical. Each additional decision multiplies the number of possible paths. For large workflows the number of paths grows exponentially.</p><p>For most real workflows, <strong>branch coverage combined with a few carefully chosen edge cases is usually enough</strong>.<br>Full path coverage is better reserved for small workflows or particularly critical automation.</p><p>The important part is not the exact coverage metric. What matters is deliberately designing inputs that exercise the workflow logic instead of relying on random data.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://katekorneeva.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Kate's Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Notes on Working with n8n]]></title><description><![CDATA[Tip #1: Always Use a Merge When Two Branches Join]]></description><link>https://katekorneeva.substack.com/p/notes-on-working-with-n8n</link><guid isPermaLink="false">https://katekorneeva.substack.com/p/notes-on-working-with-n8n</guid><dc:creator><![CDATA[Kate Korneeva]]></dc:creator><pubDate>Sun, 22 Feb 2026 09:58:28 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/c6e4ffd4-e842-4dae-87fb-835027cc7790_598x596.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This is a simple concept, yet it can lead to unexpected behavior in more complex workflows &#8212; especially sub-workflows. (Unless you have exactly 1 item going through the workflow).</p><p>I recently spent quite a bit of time debugging the wrong part of a workflow, only to realize that the real issue was a missing <strong>Merge</strong> node in a different part of it.  </p><p>Yes, I did ask an LLM to help debug it.  </p><p>No, it didn&#8217;t catch this either.</p><p>This rule is simple. The reason behind it is not. It comes down to how n8n executes branches and passes items forward.</p><div><hr></div><h3>The problem.</h3><p>Imagine this simple scenario:</p><ul><li><p>There are two branches,</p></li><li><p>Each branch processes several items</p></li><li><p>Their outputs are further processed together</p></li></ul><p>For example, we have a list of addresses and want to find out if any of them has a country whose name contains the letter &#8220;G&#8221;. If such an item is found, we return <code>isGCountryFound: true</code>, otherwise <code>false</code>.</p><p>This is how it looks without the <strong>Merge</strong> node.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kDHU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kDHU!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png 424w, https://substackcdn.com/image/fetch/$s_!kDHU!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png 848w, https://substackcdn.com/image/fetch/$s_!kDHU!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png 1272w, https://substackcdn.com/image/fetch/$s_!kDHU!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kDHU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png" width="1456" height="476" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:476,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:163850,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://katekorneeva.substack.com/i/188734532?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!kDHU!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png 424w, https://substackcdn.com/image/fetch/$s_!kDHU!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png 848w, https://substackcdn.com/image/fetch/$s_!kDHU!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png 1272w, https://substackcdn.com/image/fetch/$s_!kDHU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17fbdaf5-c64d-443b-9828-798cb12bd4f3_2648x866.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>At first glance, everything is fine and green.  </p><p>But the result of this workflow will always be <code>isGCountryFound: false</code>.</p><p>Why?</p><p>The answer lies in the way n8n executes branches. First, the top branch is executed. Here&#8217;s how the data flows:</p><p>1 -&gt; 2 -&gt; 3 -&gt; 4a -&gt; 5</p><p>Then the lower branch:</p><p>4b -&gt; 5</p><p>The final node <code>5. Return isGCountryFound</code> is executed <strong>twice</strong> &#8212; once per branch.</p><p>The second execution overwrites the first result. No synchronization happens. Each branch pushes items independently.</p><p>The fix &#8212; you&#8217;ve guessed it &#8212; is to use a <strong>Merge</strong> node where the two branches meet.  </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Q-fL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Q-fL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png 424w, https://substackcdn.com/image/fetch/$s_!Q-fL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png 848w, https://substackcdn.com/image/fetch/$s_!Q-fL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png 1272w, https://substackcdn.com/image/fetch/$s_!Q-fL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Q-fL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png" width="1456" height="462" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:462,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:173785,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://katekorneeva.substack.com/i/188734532?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Q-fL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png 424w, https://substackcdn.com/image/fetch/$s_!Q-fL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png 848w, https://substackcdn.com/image/fetch/$s_!Q-fL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png 1272w, https://substackcdn.com/image/fetch/$s_!Q-fL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf775f1-4e4d-4875-ac4d-6445cba9f466_2770x878.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>It ensures that both branches finish before passing items further for processing.</p><p>This was a piece of my experience. There&#8217;s also official documentation that can save you from many pitfalls like this:  <a href="https://docs.n8n.io/flow-logic/">https://docs.n8n.io/flow-logic/</a></p><div><hr></div><p>In this series, I will write about things I have found particularly useful in my day-to-day work with n8n &#8212; whether they are documented or not.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://katekorneeva.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Kate's Substack!</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item></channel></rss>