Sequence does not ignore false values

Here’s a simplified version of what i’m trying to do.
How do I replace “dog” with A (first letter in the sequence).
For some reason the sequence counts all the false values too.
I want the output to be cat, A, cat.

If we assume shortest lacing, there are three lists of data here:

["cat", "dog", "cat"]
["A", "B", "C"]
[False, True, False]

The first item is False (cat, A), the second item is True (dog, B), and the third item is False (cat, C).

The node is working as expected, but if you want “dog” to correspond to “A”, you will have to modify list2 to reflect this.

That would be very easy
repDog_2020-04-17_11-19-07

But I’m going to assume you intend to do something more like this :slight_smile:
repDog.dyn (22.1 KB)

1 Like

Ooo, that looks promising. I’ll try that and get back to you!
Thankyou.

1 Like

Well I tried but it’s not working with my list structure:

Any ideas?

@Alien Nested Lists? Can get tedious :slight_smile:


repTru.dyn (25.7 KB)

1 Like