String Concat Example

This example using the String Concat viper to generate a string from a range of numbers.

Smartsite SXML CopyCode image Copy Code
{buffer.set(data, '')}

<se:for from="0" to="9">
    {buffer.set(data, string.concat($data, this.index()))}
</se:for>

Result: {buffer.get(data)}
Example Result CopyCode image Copy Code
Result: 0123456789
SXML