Creating another wall dimension graph, need help with a toggle

Noob here. I am working on some auto dimension graphs and I need to make my UI’s as simple as possible. the attached graph will dimension to inside and outside faces of the walls perpindicular to the selected curve.

What I would like to do is take this list and create a toggle so users can toggle to just outside faces, or toggle to dimension inside and outside faces. I can easily acheive this with a second graph that just has outside faces only feeding in to the “Dimension ByReferences node” but I am trying to combine the two functions into one graph.

My logic is I probably need to run my inside faces list through a filter of some kind so it either generates a populated list or empty list depending on if the toggle is yes or no and then feed that back in to list.join, but since I am a noob, I have no idea how to do that lol.


Dim. All Walls, Perp to selected Plan.dyn (34.8 KB)