&&substring

From m204wiki
Jump to navigation Jump to search
Action:

Return a substring of the target string argument. The returned substring characters begin with the start character position (1-based) and continue for len characters. If no len value is specified, the returned substring extends to the end of string.

Syntax:

&&substring(string,start[,len]) 

where the arguments observe the rules for &&function string arguments.

For example, the first &&substring call in the following fragment returns b; the second returns bc; the last returns c:

&&substring('abc',2,1)  &&substring('abc',2)  &&substring('abc',3) 

Introduced: Build 58