Mwnci hassuffix() Function

Syntax

hassuffix(string, suffix)

Description

The function hassuffix() tests whether the string ends with suffix.

Example

if (hassuffix("Wobble.txt", ".txt")) {
    println("It's a .txt file")
}


It's a .txt file