Skip to main content
Version: v4.24

starts_with

Checks if a string starts with a specified substring.

starts_with(x:string, prefix:string) -> bool

Description

The starts_with function returns true if x starts with prefix and false otherwise.

Examples

Check if a string starts with a substring

from {x: "hello".starts_with("he")}
{x: true}

See Also

ends_with