Cartesian Product Help

I’m working on a script for view creation and trying to concat all the different values together but im not sure how to get the cross product of every combination. I tried cartesian product but its not quite producing the intended result.

The intent is that the lists Level, Plan Type, and Scope box could have 1 or more indices. the Seperator will be constant

Is it possible to do this without using list cycle and count?

Intended result

First Floor - FFE Plan - Part A
First Floor - FFE Plan - Part B
First Floor - Finish Plan - Part A
First Floor - Finish Plan - Part B
First Floor - Floor Plan - Part A
First Floor - Floor Plan - Part B
First Floor - RCP - Part A
First Floor - RCP - Part B
Second Floor - FFE Plan - Part A
Second Floor - FFE Plan - Part B
Second Floor - Finish Plan - Part A
Second Floor - Finish Plan - Part B
Second Floor - Floor Plan - Part A
Second Floor - Floor Plan - Part B
Second Floor - RCP - Part A
Second Floor - RCP - Part B
Third Floor - FFE Plan - Part A
Third Floor - FFE Plan - Part B
Third Floor - Finish Plan - Part A
Third Floor - Finish Plan - Part B
Third Floor - Floor Plan - Part A
Third Floor - Floor Plan - Part B
Third Floor - RCP - Part A
Third Floor - RCP - Part B

I figured it out it. I needed a list flatten after the separator

or put the separator in square brackets, so it becomes a list (of a single item)

If your separator is not going to change, you can also just append that to each list0 and list2 item, e.g. “First floor -”

You could also achieve cross-product concatenation with a code block. The lacing in code blocks can be set with the modifier <1> after the variable name.

RVT_ViewNameConcat.dyn (13.3 KB)

Here’s another way that works