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

string.sub

Returns the substring of the string that starts at <code>i</code> and continues until <code>j</code>.

Non ancora tradotto

Sintassi

Lua
string.sub(string, StartPos, EndPos)

Parametri

Nome Tipo Predefinito Descrizione
string string The string you'll take a sub-string out of.
StartPos number The position of the first character that will be included in the sub-string.
EndPos number The position of the last character to be included in the sub-string. It can be negative to count from the end.

Valore restituito

  • string