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/LIST

Inputs (4)

NameTypeDefaultDescription
listLIST
value*
startoptINT0
endoptINT-1

Outputs (1)

NameTypeDescription
indexINT