Berserk Docs
Scalar FunctionsString Functions

hasprefix_cs

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

Syntax

text hasprefix_cs lookup

Negated form:

text !hasprefix_cs lookup

Function call syntax:

hasprefix_cs(text, lookup)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print "Longship fleet approaching" hasprefix_cs "Long"
print_0 (bool)
true

On this page