substring: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page substring to Substring without leaving a redirect: Converting page title to first-letter uppercase)
m (Conversion script moved page Substring to substring: Converting page titles to lowercase)
(No difference)

Revision as of 22:59, 9 February 2023

substring() Function

Introduced in version 1.3b48
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

substring(str, start)
substring(str, start, end)

Examples

    [substring("This is a test", 5)]
    [substring("This is a test", 5, 7)]

Returns

    is a test
    is