Berserk Docs
Scalar FunctionsString Functions

endswith

Indicate whether a string ends with another string (case-insensitive).

Syntax

text endswith lookup

Negated form:

text !endswith lookup

Function call syntax:

endswith(text, lookup)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print "Voyage to Kattegat" endswith "kattegat"
print_0 (bool)
true

On this page