$substring

Returns a new string that is a substring of the given.
Syntax
    $substring{some_string}{begin_index}{end_index}
DocumentationReturns a new string that is a substring of the given:
    Parameters:
some_string, the string whos substring is requested.
begin_index, a index of the given string from witch the substring shall begin inclusive.
end_index, a index of the given that shall be the end index of the substring exclusive. Returns:
    the substring of the given string beginning at the specified index begin_index and extends
    to the character at index end_index - 1. The langth of the substring is end_index - begin_index.
Throws:
    an IndexOutOfBoundsException - if the begin_index is negative, or end_index is larger than the length
    of the given string, or begin_index is larger than end_index.
Note:
    the first character of a string has the index value 0 (zero). the last character of a string has the index value $length{some_string} - 1.
Examples
The following expression returns a string that equals to the given:

    $substring{some_string}{0}{$dec{$length{some_string}}}
GroupString
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters 3