# All Elements Of Category in a Code Block

**URL:** <https://forum.dynamobim.com/t/all-elements-of-category-in-a-code-block/5399>\
**Category:** Revit\
**Tags:** designscript, codeblock\
**Created:** [August 2, 2016, 8:31pm UTC](https://forum.dynamobim.com/t/all-elements-of-category-in-a-code-block/5399 "2016-08-02T20:31:29Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![joao.jorge](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joao.jorge/32/70975_2.png) [@joao.jorge](https://forum.dynamobim.com/u/joao.jorge)\
**Post date:** [April 12, 2019, 1:18pm UTC](https://forum.dynamobim.com/t/all-elements-of-category-in-a-code-block/5399/11 "2019-04-12T13:18:37Z")

</div>

This method worked just fine!

However, I tryed to do it in an if-condition and it did not work.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/b/4be1ec4cc448357622defac9f42321a01334674d.png)

---

_[View the full topic](https://forum.dynamobim.com/t/all-elements-of-category-in-a-code-block/5399)._
