String IfEmpty Example

Demonstrates the use of String IfEmpty. IfEmpty returns the default value if the supplied argument is empty or the argument itself when not empty.

Smartsite SXML CopyCode image Copy Code
{string.isempty(hello, world)}
{string.isempty(, world)}
Example Result CopyCode image Copy Code
hello
world
SXML