String StartsWith Example

The following example demonstrates the use of the String StartsWith viper.

Smartsite SXML CopyCode image Copy Code
{string.startswith('hello world', 'hello')} => true

{string.startswith('hello world', 'world')} => false

{string.startswith('hello world', 'Hello')} => false

{string.startswith('hello world', 'Hello', false)} => false

{string.startswith('hello world', 'Hello', true)} => true
Example Result CopyCode image Copy Code
true => true

false => false

false => false

false => false

true => true
SXML