String LastIndexOf Example

The following example returns the last position of the substring "ain".

Smartsite SXML CopyCode image Copy Code
{string.lastindexof('The rain in Spain falls mainly in the plain', 'ain')}
Example Result CopyCode image Copy Code
40
SXML