Extracts the last L characters from the end of string IN and writes the result to the target STRING variable.
RIGHT returns the rightmost length (L) characters of src (IN). Use it to extract serial number suffixes, checksums, or trailing command codes.
STRING variable, source string (IN), and character count (L).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")
STRING variableActionQualifier.P (Pulse)ActionInstruction.RIGHTIN) — Source STRING variable or literalL) — Number of characters to extract (INT variable or literal)