String Substring Example

The following example demonstrates the use of the substring viper.

Smartsite SXML CopyCode image Copy Code
{string.substring('hello world', 0, 5)} => hello

{string.substring('hello world', 6)} ==> world

{string.substring('hello world', 6, 4)} == worl
Example Result CopyCode image Copy Code
hello => hello

world ==> world

worl == worl
SXML