Combine Lists of different lengths

Hello everyone.

Is there a way to achieve the same result as in the bottom part by combining the two lists on the red circle and compare them with the values obtained by GetParameterValueByName?

If string
“0.10”, “1.01”, “1.02”…
contains
“0.”,“1.”,“2.”,“3.”,“9.”
Set parameter to:
General Information, Floor Plans, Sections, Elevations, 3d Views

I tried combining those lists for a couple of hours without any result so I got my result by separating the elements.

Thanks for your help.

Some more information could be needed to give an answer, could you show what’s in your lists, for instance?

These are the combinations I am looking for. I already achieved it as I explained. I would like to know if I can simplify it by combining the lists.

@jair_gh
I think you mean somthing like this.