ComfyUI Node

index

Returns the index of the first occurrence of a value in a list. This node takes a list and a value as inputs, then returns the index of the first occurrence of the value. Optional start and end parameters limit the search to a slice of the list. Returns -1 if the value is not present.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
index
  • list
  • value
  • index
start0
end-1
CategoryBasic/Data List

Inputs (4)

NameTypeDefaultDescription
list*
value*
startoptINT0
endoptINT-1

Outputs (1)

NameTypeDescription
indexINT