Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Checks if a string starts with a specified substring.

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

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

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

Last updated: