Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

lua substring | get char from from index

text = "Hello world"
--text:sub(<start-index>,<end-index (inclusive)>)
--to get the word "Hello"
sub_text = text:sub(1,5)
 
PREVIOUS NEXT
Tagged: #lua #substring #char #index
ADD COMMENT
Topic
Name
3+7 =