This function tests if a string starts with the specified prefix. Returns true if the input string starts with the specified prefix, if not it returns false.$string.startsWith(<inStr>, <prefix>)
inStrprefix
Example 94 #set($str='LABEL_CustNo')
#set($check=$string.startsWith($str, 'LABEL'))
#if($check)
$str
#else
No match!
#endLABEL_CustNo
Example 95 #set($str='LABEL_CustNo')
#set($check=$string.startsWith($str, 'VALUE'))
#if($check)
$str
#else
No match!
#endNo match!
| OpenText StreamServe 5.6.2 | Updated: 2018-01-26 |