AutomationView Documentation

RIGHT (Right Substring)

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


Description

RIGHT returns the rightmost length (L) characters of src (IN). Use it to extract serial number suffixes, checksums, or trailing command codes.


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 -> RIGHT 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("serial_suffix", "Extract 4-char suffix", qualifier=ActionQualifier.P, instruction=ActionInstruction.RIGHT, src="barcode", length="4")

See Also