AutomationView Documentation

FIND (Find Substring Position)

Searches for the first occurrence of substring IN2 within string IN1 and writes the 1-based starting character index (0 if not found) to the target INT variable.


Description

FIND locates src2 (IN2) inside src1 (IN1):


Syntax

Sequence Visual Editor

  1. Select an action on a step or transition and hold Alt (or right-click -> Edit Qualifier & Instruction).
  2. Select Strings -> FIND and choose the P qualifier.
  3. Fill in the target INT variable, source string (IN1), and search substring (IN2).

Python

from automation_machine import ActionQualifier, ActionInstruction

step.add_action("delim_pos", "Find delimiter index", qualifier=ActionQualifier.P, instruction=ActionInstruction.FIND, src1="barcode", src2='"-"')

See Also