# Why \`for/if\` syntax is not allowed in loops

**URL:** <https://discourse.julialang.org/t/why-for-if-syntax-is-not-allowed-in-loops/119393>\
**Category:** Internals & Design\
**Tags:** loops, control-flow\
**Created:** [September 14, 2024, 7:45am UTC](https://discourse.julialang.org/t/why-for-if-syntax-is-not-allowed-in-loops/119393 "2024-09-14T07:45:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [September 15, 2024, 4:59pm UTC](https://discourse.julialang.org/t/why-for-if-syntax-is-not-allowed-in-loops/119393/6 "2024-09-15T16:59:26Z")

</div>

Linking [identical thread](https://discourse.julialang.org/t/for-if-syntax/64559) for further insights.

---

_[View the full topic](https://discourse.julialang.org/t/why-for-if-syntax-is-not-allowed-in-loops/119393)._
