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 ends with a specified substring.

ends_with(x:string, suffix:string) -> bool

The ends_with function returns true if x ends with suffix and false otherwise.

from {x: "hello".ends_with("lo")}
{x: true}

Last updated: