Berserk Docs
Scalar FunctionsString Functions

hasprefix

Indicate whether a string starts with a word prefix (case-insensitive, word boundary matching).

Syntax

text hasprefix lookup

Negated form:

text !hasprefix lookup

Function call syntax:

hasprefix(text, lookup)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print "Shieldmaiden of Kattegat" hasprefix "shield"
print_0 (bool)
true

On this page