Slice Variable Block

Extracts a section of a variable value.

  • Variable name
    The name of the variable

  • Start index
    The zero-based index at which to begin extraction. If the start index is negative, Automa begins the extraction from the end of the value.

  • End index
    The index of the first element to exclude.

Examples

InputStart IndexEnd IndexOutput
Hello world05Hello
Lorem ipsum6ipsum
Foo bar-3bar
[1, 2, 3, 4]02[1, 2]
[1, 2, 3, 4]-2[3, 4]