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
- variable_name: Target
STRINGvariable - qualifier: Typically
ActionQualifier.P(Pulse) - instruction:
ActionInstruction.DELETE - src (
IN): SourceSTRINGvariable or literal - length (
L): Number of characters to delete (INTvariable or literal) - pos (
P): 1-based starting character position (INTvariable or literal)
Sequence Visual Editor
- Select an action on a step or transition and hold Alt (or right-click -> Edit Qualifier & Instruction).
- Select Strings -> DELETE and choose the P qualifier.
- Fill in the target
STRINGvariable, 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")