AutomationView Documentation

LEFT (Left Substring)

Extracts the first L characters from the start of string IN and writes the result to the target STRING variable.


Description

LEFT returns the leftmost length (L) characters of src (IN). Use it to extract station prefixes, header codes, or barcode prefixes.


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 -> LEFT and choose the P qualifier.
  3. Fill in the target STRING variable, source string (IN), and character count (L).

Python

from automation_machine import ActionQualifier, ActionInstruction

step.add_action("prefix_code", "Extract 3-char prefix", qualifier=ActionQualifier.P, instruction=ActionInstruction.LEFT, src="barcode", length="3")

See Also