Optimize n8n Workflows with Custom Do...While Loop NodeOptimize n8n Workflows with Custom Do...While Loop Node
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Built and Published a Custom n8n Node: Do...While Loop
I designed and shipped n8n-nodes-do-while, a community node that adds the missing do...while loop to n8n workflows.
WHY IT EXISTS: Every programmer knows the do...while pattern. You run a block of code, check a condition, and keep going until that condition is true. n8n had no native equivalent — just workarounds. So I built a proper implementation.
WHAT IT DOES: The node loops through any connected nodes until a condition you define evaluates to true. It supports configurable wait times between iterations, a max iterations cap, timeout detection, and per-item loop metadata. Two output pins give you full control: one for when the condition is met, one for the loop itself.
USE CASES:
Poll an external API until a background job finishes
Retry a failing HTTP request until it returns success
Wait for a database record to appear before continuing
Check an AI processing job every N seconds until the result is ready
Open to feedback, bug reports, and use case suggestions.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started