You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

starts_with()

Usage

starts_with(string, prefix)

Description
Predicate function - returns true if the given string starts with the given prefix.

Example

${starts_with('Hello World!', 'Hello')}
${starts_with('Hello World!', 'Hola')}

results in

true
false

Search results for "starts_with()"

starts_with()

Predicate function - returns true if the given string starts with the given prefix.

starts_with(string, prefix)