Selecting list that contains the exact items in the sublist

Hello everyone.

So i have structured list (meaning always have the same order and the same length) getting from databases through python script. I wanted to selecting the index list based on the items in sublist.

Example on this image, i wanted to getting the list that are contains “Kombinasi” at python nodes. What should i do?

Actually i can getting it using DB query inside the python but, im just curious how Lists-logic works in dynamo and learn from it. In case if i facing this problems again.

Thanks in advance!

Hi @najwan.joan.sv probably index of you are after or probably all indicies of

1 Like

ahh, i see, but thats not what i expected

I expect to get the index 2 (Inside red box) of the list due to it has “Kombinasi” value as string inside of it

arhh something maybe

2 Likes

Yes!, Exactly what i needed.

Thankyou very much

1 Like