Berserk Docs
Scalar FunctionsString Functions

hassuffix

Indicate whether a string ends with a word suffix (case-insensitive, word boundary matching).

Syntax

text hassuffix lookup

Negated form:

text !hassuffix lookup

Function call syntax:

hassuffix(text, lookup)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print "Ragnar Lothbrok" hassuffix "brok"
print_0 (bool)
true

On this page