Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Condiviso

string.StartsWith

Test whether this string starts with given string

Non ancora tradotto

Sintassi

Lua
string.StartsWith(other_string)

Parametri

Nome Tipo Predefinito Descrizione
other_string string — The given string

Valore restituito

  • boolean

Esempi

Checks if string starts with text
local str = "awesome text!",local starts = str:StartsWith("awesome")