# False and true problem

**URL:** <https://forum.dynamobim.com/t/false-and-true-problem/82812>\
**Category:** Generative Design\
**Created:** [November 7, 2022, 9:06am UTC](https://forum.dynamobim.com/t/false-and-true-problem/82812 "2022-11-07T09:06:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![julien.zabala](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@julien.zabala](https://forum.dynamobim.com/u/julien.zabala)\
**Post date:** [November 7, 2022, 9:06am UTC](https://forum.dynamobim.com/t/false-and-true-problem/82812/1 "2022-11-07T09:06:53Z")

</div>

Hello community,  
I turn to you because I can’t find the solution to my problem although I spent the weekend on it!  
In my case I would like to create views based on existing levels but I’m not interested in all of them, so I tried to set up a script but it doesn’t work as I want.  
On the picture we have:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/8/38b96e92708d4be28bd11d9b83903fed19ef1775.png)

in 1 the list of all existing views  
in 2 the reduced list for ease of use  
in 3 a filter that shows the levels I want with the full names (like the picture below)  
But in 4 it shows me only 1 “true” when there are several.  
and to finish in 5 in the dictionary it puts me only one view in “in the list” but that corresponds to the 0 of the list 1

I can’t figure out probably something I did wrong but I don’t see or understand ☹

Can someone please explain and help me?

Thanks in advance and have a nice day.

Julien  
Bim Modeller

---

<div class="post-metadata">

**Author:** ![Vladimir](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vladimir/32/147600_2.png) [@Vladimir](https://forum.dynamobim.com/u/Vladimir)\
**Post date:** [November 7, 2022, 9:31am UTC](https://forum.dynamobim.com/t/false-and-true-problem/82812/2 "2022-11-07T09:31:17Z")

</div>

Hi @julien.zabala!

Look into List Lacing. Set it to Cross Product. Ang set filtering levels to L2.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/7/87f4426cce15a479fea7b8b5e51eccd68cec0201.png)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [November 7, 2022, 9:44am UTC](https://forum.dynamobim.com/t/false-and-true-problem/82812/3 "2022-11-07T09:44:01Z")

</div>

Hi Julien,

you don’t need all these steps.  
Don’t sort the level names to not change the level elements order.

You can replace 4 nodes with _Element.Name_

 ![views](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/5/b53d0c7e261a97920d794a0149502de7627e87a3.png)  
If the longest lacing doesn’t work, use the cross product lacing on == node.

---

<div class="post-metadata">

**Author:** ![julien.zabala](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@julien.zabala](https://forum.dynamobim.com/u/julien.zabala)\
**Post date:** [November 7, 2022, 10:01am UTC](https://forum.dynamobim.com/t/false-and-true-problem/82812/4 "2022-11-07T10:01:29Z")

</div>

Super thanks a lot it works 🙂
