Split a list of multiple items, based on a specific karakter in each item

Hi,

I was wondering if/how it would be possible to split a list (with multiple items) based on a specific character/number of the item itself.

Example
I would like to split the list with items based on the value behing the @ value for all items;

So in the end I would like to have 3 lists:

{0;0;0}@0

{0;0;0}@1

{0;0;0}@2
{0;0;0}@2

thank you in advance :slight_smile:

Like this?

Ahh thanks! exactly what I needed :)!

one more question if you dont mind, do you have an simple manner to split a list is 2 list depending on the presence of the @?
image

thanks again!

There will be so many ways. Here is one:
The expression at the end of List Length is x-1

In Python you could do something like this:

a = []
b = []

for i in x:
    if "@" in i:
        a.append(i)
    else:
        b.append(i)

1 Like

Great thank you soo much! :+1: :+1: