startsWith

From RPTools Wiki
Revision as of 01:47, 23 March 2009 by Merkuri (talk | contribs) (Fixed examples to use "startsWith" instead of "endsWith")
Jump to navigation Jump to search

startsWith() Function

Introduced in version 1.3b49

Usage

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

Examples

[r: startsWith("Test", "T")]
[r: startsWith("Test", "Te")]
[r: startsWith("Test", "Tez")]

Returns

   1
   1
0