Berserk Docs
Scalar FunctionsString Functions

has

Indicate whether a string contains a whole word (case-insensitive, word boundary matching).

Syntax

text has lookup

Negated form:

text !has lookup

Function call syntax:

has(text, lookup)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print "Bjorn Ironside sailed the Mediterranean" has "ironside"
print_0 (bool)
true

On this page