substring: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
Verisimilar (talk | contribs) m (Macros:Functions:substring moved to substring) |
(No difference)
|
Revision as of 05:24, 9 March 2009
substring() Function
Returns the substring of the string from the start to the end indexes. Indexes for strings start at 0. If the end parameter is not specified then the substring extends to the end of the string.
Usage
[h: str = substring(str, start)]
[h: str = substring(str, start, end)]
Examples
[substring("This is a test", 5)]
[substring("This is a test", 5, 7)]
Returns
is a testis