&&substring

From m204wiki
Revision as of 16:52, 24 August 2022 by Ekern (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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