Skip to main content
The Slice Text action returns the portion of a string between two indexes. Indexes are zero-based, and the character at End is not included.

Inputs

Outputs

Index behavior

  • Positive indexes count from the beginning, starting at 0.
  • Negative indexes count backward from the end; -1 refers to the final character.
  • An index outside the string is clamped to its valid bounds.
  • If the resolved end comes before the resolved start, the result is empty.
For workflow, a start of 0 and end of 4 returns work. A start of -4 with no end returns flow.