Berserk Docs
Scalar FunctionsString Functions

startswith

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

Syntax

text startswith lookup

Negated form:

text !startswith lookup

Function call syntax:

startswith(text, lookup)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print "Viking warriors crossed the North Sea" startswith "viking"
print_0 (bool)
true

On this page