Index Of


#1

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 ?


#2

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!


#3

Hi @m.shcheblykin

Use “List.AllIndicesOf” node: