Index Of

text · C136 · starter-package 7.0.1

Finds the first position of a fragment.

Use it when

Find the first case-sensitive fragment position measured in Unicode code points.

Inputs and output

  • Text is required text.
  • Fragment is required text.
  • Index returns number.

Rules

Returns a zero-based Unicode code-point index, -1 when absent, and 0 for an empty fragment.

Text can contain at most 1,000,000 characters. An invalid value, exceeded limit, or unsupported option stops the workflow at this block with a clear message.

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.

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputtext — Texttextyes
Inputfragment — Fragmenttextyes
Outputresult — Indexnumberon success