endsWith: Difference between revisions

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

Revision as of 23:02, 9 February 2023

endsWith() Function

Introduced in version 1.3b49
Returns 1 if the string ends with a certain sub string.

Usage

[h: result = endsWith(str, substr)]

Examples

[r: endsWith("Test", "t")]
[r: endsWith("Test", "st")]
[r: endsWith("Test", "z")]

Returns

   1
   1
0