<RetVar> = The commands return, this will be the variable containing the required string.
<Var/String> = The string you wish to get the 'piece' out of.
<Var/Number> = The starting position in the string.
<Var/Number> = How many characters you wish to get out of the selected string.
The first position is 0.
Returns the values (characters) in a string <Var/String> beginning at 'offset = <Var/Number>' and ending after the specified length (number of characters), 'length = <Var/Number>'
Example:
$text = get substring of 'I need to get one piece of text out of this' offset = 10 length = 13
In the above example, $text would be get one piece
Command Location:
- »» General Commands
- »» Strings
<RetVar> = get substring of <Var/String> offset = <Var/Number> length = <Var/Number>
- »» Strings