This function tests if a string ends with the specified suffix. Returns true if the input string ends with the specified suffix, if not it returns false.$string.endsWith(<inStr>, <suffix>)
inStrsuffix
Example 96 #set($str='logo.png')
#set($check=$string.endsWith($str, 'png'))
#if($check)
$str
#else
No match!
#endlogo.png
Example 97 #set($str='logo.jpg')
#set($check=$string.endsWith($str, 'png'))
#if($check)
$str
#else
No match!
#endNo match!
| OpenText StreamServe 5.6.2 | Updated: 2018-01-26 |