Find Index

data · C162 · starter-package 7.0.1

Locate the first structurally equal value and return its zero-based position.

When to use

Locate the first structurally equal value and return its zero-based position.

Inputs

  • list — List: list; required; supported workflow value for list.
  • item — Item: any; required; supported workflow value for item.

Outputs

  • Index (number): deterministic result output.

Behavior and boundaries

The first matching position is returned. A missing value returns -1, matching familiar zero-based list conventions without a separate nullable number.

These operations do not change the original input. Unsupported, circular, invalid, or excessively large values stop the workflow with a clear message.

Example

Searching ["a", "b", "b"] for "b" returns 1; searching for "x" returns -1.

Failure cases

Execution stops with an actionable Nodestly error when a required connector is missing, a value has the wrong type or shape, a configured index/mode is unsupported, or the result would exceed collection limits.

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.