startsWith: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page startsWith to StartsWith without leaving a redirect: Converting page title to first-letter uppercase) |
m (Conversion script moved page StartsWith to startsWith: Converting page titles to lowercase) |
(No difference)
|
Revision as of 23:02, 9 February 2023
startsWith() Function
• Introduced in version 1.3b49
Returns
true
(1
) if the first parameter starts with the contents of the second parameter.Usage
[h: result = startsWith(string, substring)]
Returns true
(1
) if the string starts with a certain substring and false
(0
) if not.
Examples
[r: startsWith("Test", "T")]
[r: startsWith("Test", "Te")]
[r: startsWith("Test", "Tez")]
Returns
1 1 0