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

string.EndsWith

Test whether this string ends with given string

Non ancora tradotto

Sintassi

Lua
string.EndsWith(other_string)

Parametri

Nome Tipo Predefinito Descrizione
other_string string The given string

Valore restituito

  • boolean

Esempi

Checks if string ends with text
local str = "awesome text!",local ends = str:EndsWith("text!")