You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

the function returns a subSTRING of s beginning at index beginIndex and ending at endIndex - 1. Thus the length of the substring is endIndex-beginIndex.

syntax
substring(string s, number beginIndex, number endIndex) #Output: String
Examples
Parser expressionDescription
substring("smiles", 1, 5)

The function returns a subSTRING"mile"

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a STRING