Index Of

Hello. Could you please help me with the Node IndexOf.
I can not force this Node to give me indexes of repeatable element in the list.
How can I get indexes of ALL 1 from the list ?

Capture

list = IN[0]
value = IN[1]
c = 0
output = []
for l in list:
	if l == value:
		output.append(c)
	c +=1
	
OUT = output

This is using python, OOTB probably possible too!

1 Like

Hi @m.shcheblykin

Use “List.AllIndicesOf” node:

5 Likes