string

string.string.starts_with

Declaration
lua
string.starts_with(text, prefix)
Description
Check if string starts with prefix.
Parameters
NameTypeRequiredDefaultDescription
textstringRequired—
prefixstringRequired—
Return Values
TypeDescription
boolean
Example
lua
("hello"):starts_with("he")