Multiply a list made of text with a list made of numbers

Hi all,
I need a little bit of help doing some math between lists.

I have 2 lists, the first contains family names, the second one contains numbers, I need to produce a third list where the 1st item of the 1st list would be multiplied by the 1st number of the 2nd list, here an example:

As you can see in the image above, I need to “type” 3 times the Family A, 2 times the Family B and 1 time the Family C, so the new list should be like the one showed at the right of the image.

If anyone has a solution would be much appreciated :slight_smile:
Thanks


I think this should solve it.
Do realize that the lacing of the List.TakeItems node is set to longest.

2 Likes

List.OfRepeatedItems by itself will also work with levels and lacing set correctly.

3 Likes

I tried those settings and it worked just fine, thank you guys for the quick help @jacob.small @PauLtus

Funny, I tried quite a lot of methods including directly sending it into that node but I somehow didn’t get it to work like that.

What do you want to happen when the list length are not equal?
see image:
:wink:

2 Likes

Thanks @Nico_Stegeman

1 Like