Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

indexOf

number indexOf(container, value, startIndex)

Returns the index where value is found in container.

  • An array container is searched for an element which equals value.
  • A text container is searched for an subsection that match value (case-sensitive).

Parameters

  1. containerarray or text to search for value.
  2. value — array element or text subsection to search for.
  3. startIndex — optional index in container where to start searching. 0 if omitted.

Returns

  • index (≥ 0) in container where the value is found, -1 otherwise.
Note! This documentation can also be found in the Help & feedback menu of the app.