$string.getCharAt(<inStr>, <index>)
inStrindex The index defining the position in the input string. The index is zero based which means the first character in the input string has the index 0.
Example 87 #set($str='Hello World!')
Character is: $string.getCharAt($str, 6)Character is: W#set($str='Hello World!')
#set($index=6)
#set($pos=$index+1)
Original string is: $str
Character at position $pos is: $string.getCharAt($str, $index)Original string is: Hello World!
Character at position 7 is: W
| OpenText StreamServe 5.6.2 | Updated: 2018-01-26 |