Split list based on specific values

Hi,

Fairly simple challenge, but I can’t figure it out.

There is a list A with numbers.
List B, contains numbers which I would like to ‘split’

So in the end I would like to have 2 lists.
List C: containing the numbers in B
List D: containing the numbers which are present in A but not in B.

2020-04-24 Split list values.gh (5.2 KB)

I tried the match text component but, it only retrieves the 1st value as true.

Thank you in advance :slight_smile:

Hope this is what you want.

Hi,

Thanks, uhm yes but I would like to have it in a generic way.
So that the list of true/false is automatically generated based on list B.

If you have any suggestions please let me know, thanks! :slight_smile:

How are you going to get the list B everytime? As of this, you just inserted the text manually, right? If you are talking about the specific pattern, then you need to insert the true false pattern to the cull pattern and no matter how long your list is, it will generate the culled list based on that pattern.

List B is a given list which I already have. List A +B is input

The reason you are getting that error is that the text matching is trying to match every index of the two lists.

Suppose 0 has value 8 and the other list has index no. 1 with value 8, then it will result in False. Only if the two index match the same value, then there will be a True output.

Another method is you can graft the list B and gett different lists with an equality condition to check the results.

offcourse :sweat_smile:

Thank you! :+1: