Start » Filter Reference » Basic » String » Substring
Module: | FoundationLite |
---|
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:
and mandatory input parameter inStart equals 5, filter will give as a result outSubstring:
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:
Complexity Level
This filter is available on Advanced Complexity Level.