Function
string.StartsWith
Test whether this string starts with given string
Syntax
string.StartsWith(other_string)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other_string
|
string | — | The given string |
Returns
- boolean
Examples
local str = "awesome text!",local starts = str:StartsWith("awesome")