endsWith
endsWith() Function
• Introduced in version 1.3b49
Returns 1 if the string ends with a certain sub string.
Usage
<source lang="mtmacro" line> [h: result = endsWith(str, substr)] </syntaxhighlight>
Examples
<source lang="mtmacro" line>
[r: endsWith("Test", "t")] [r: endsWith("Test", "st")] [r: endsWith("Test", "z")] </syntaxhighlight>
Returns
1 10