Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » String » Substring

Substring


Creates a string from a fragment of the input string.

Name Type Range Description
inString String
inStart Integer 0 -
inLength Integer* 0 -
outSubstring String

Examples

When inString input parameter is:

Test string

and mandatory input parameter inStart equals 5, filter will give as a result outSubstring:

string

since the indexing of the string is zero-based and string starts at 5-th index of Test string. Notice that whitespace is not included into result, because its index is 4.

Naturally, it is also possible to manipulate length of outSubstring. For considered example, in case when optional input parameter inLength is in use and its value equals 3 an output outSubstring of the filter will be:

str

Complexity Level

This filter is available on Basic Complexity Level.