AutomationView Documentation

DELETE (Delete Substring)

Removes L characters from string IN starting at 1-based position P and writes the remaining string to the target STRING variable.


Description

DELETE excises length (L) characters from src (IN) starting at character index pos (P, where 1 is the first character) and stores the shortened string in the target variable.


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

Python

from automation_machine import ActionQualifier, ActionInstruction

step.add_action("cmd_queue", "Remove completed head command", qualifier=ActionQualifier.P, instruction=ActionInstruction.DELETE, src="cmd_queue", length="1", pos="1")

See Also