| Syntax | $endsWith{string}{suffix} |
| Documentation | Tests if the given string ends with the specified suffix.
Parameters:
string, the string to test if ends with the specified suffix.
suffix, the suffix.
Returns:
1 if the character sequence represented by the suffix is a suffix of the character sequence represented
by the string; 0 otherwise.
Note:
the result will be 1 if the suffix is the empty string or is equal to the given string. |
| Examples |
The following expressions will allways return 1:
$endsWith{some_string}{}
$//or
$endsWith{some_string}{some_string}
The following expressions will also return 1:
$endsWith{some_string}{string}
The following expressions will return 0:
$endsWith{some_string}{strong} |
| Group | String |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 2 |
| Maximum parameters | 2 |