# How to conditonally include elements in a list?

**URL:** <https://discourse.elm-lang.org/t/how-to-conditonally-include-elements-in-a-list/6254>\
**Category:** Learn\
**Created:** [September 5, 2020, 4:11am UTC](https://discourse.elm-lang.org/t/how-to-conditonally-include-elements-in-a-list/6254 "2020-09-05T04:11:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![surferjeff](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/surferjeff/32/3832_2.png) [@surferjeff](https://discourse.elm-lang.org/u/surferjeff)\
**Post date:** [September 5, 2020, 2:43pm UTC](https://discourse.elm-lang.org/t/how-to-conditonally-include-elements-in-a-list/6254/3 "2020-09-05T14:43:50Z")

</div>

Thank you Hans-Helmut! That worked!

---

_[View the full topic](https://discourse.elm-lang.org/t/how-to-conditonally-include-elements-in-a-list/6254)._
