Skip to main content

Get Substring Action

Get Substring Action returns a substring starting at the specified index with the specified length. It extracts a portion of a string based on a starting position and a character count, storing the result in an output variable.

Appearance

In Talos, Get Substring Action appears as a standard rectangular node with a file icon that is half dashed.

Get Substring Icon

Properties

As all Actions, Get Substring Action has a few unique properties that are essential for its functionality.

Common properties

Common properties inherited from Action.

Display NameString
This is the display name of the action.

By customizing this property, you can differentiate between same type of actions.

Action IDString
Indicates the unique ID of this action.

This property is Read only and it is not customizable

DisabledBoolean
If set to true, this action is considered disabled and will not be executed.
Input stringString with Expressions
The input string to extract the substring from.

See more about Talos Scripting language & Expressions

tip

This property supports expressions. You can use variable references and string expressions to dynamically resolve the input string at runtime.

Examples

Assuming a declared String variable with name fullPath.

${fullPath}
C:/Users/${fullPath}/file.txt
Start indexExpression
The index to start extracting the substring from.

See more about Talos Scripting language & Expressions

tip

This property supports expressions. You can use variable references or numeric expressions to dynamically resolve the start index.

Examples

Assuming a declared Integer variable with name offset.

0
5
${offset}
${offset} + 1
LengthExpression
The number of characters to extract.

See more about Talos Scripting language & Expressions

tip

This property supports expressions. You can use variable references or numeric expressions to dynamically resolve the length.

Examples

Assuming a declared Integer variable with name count and a String variable input.

10
${count}
${input}.Length() - 5
Output VariableVariable
The variable to store the resulting substring.