Mwnci hasprefix() Function

Syntax

hasprefix(string, prefix)

Description

The function hasprefix() tests whether a string begins with prefix. The return value will be true or false.

Example

if (hasprefix("Wibble", "Wib")) {
    println("Starts with Wib")
}


Starts with Wib