&&substring: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__ {| |width="50%"| '''Action:''' |width="50%"| Return a substring of the target ''string'' argument. The returned substring characters begin with the ''start''> charact...")
 
No edit summary
 
Line 4: Line 4:
|width="50%"| '''Action:'''
|width="50%"| '''Action:'''
|width="50%"|
|width="50%"|
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''.  
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:'''
'''Syntax:'''

Latest revision as of 16:52, 24 August 2022

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