ENDS_WITH

Description

ENDS_WITH returns true if a string ends with the given suffix, and false otherwise.

Syntax

ENDS_WITH(string, suffix)

Returns: true or false.

Example

p is Person
ENDS_WITH(p.email, '@example.com')

This returns true if the person's email address ends with @example.com.

Last updated

Was this helpful?