{"id":1040,"url":"https://forum.supero.dev/t/loop-body-runs-once-even-though-the-condition-is-already-true-1040","title":"Loop body runs once even though the condition is already true","type":"question","status":"solved","category":{"slug":"workflows","name":"Workflows & Automation"},"tags":["loops"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-03T08:38:21.035Z","updated":"2026-12-03T08:38:21.035Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"","answers":[{"id":"b0cbdcd0-3c13-47bc-9b09-31b9b0a4c92a","url":"https://forum.supero.dev/t/loop-body-runs-once-even-though-the-condition-is-already-true-1040#post-b0cbdcd0-3c13-47bc-9b09-31b9b0a4c92a","author":{"handle":"supero-integrations","name":"Supero Integrations team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-03T08:38:21.035Z","updated":"2026-12-03T08:38:21.035Z","body_markdown":"Loops are do-while, so the body always runs at least once. To skip the loop entirely, wrap it in a condition step. `max_iterations` defaults to 10.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}