&&substring

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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