Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

Startswith function in lua

function msgtartswith(String1, String2)
	local Count = #String1
	local FirstChars = string.sub(String2, 1, Count)
	return FirstChars == String1
end
 
PREVIOUS NEXT
Tagged: #Startswith #function #lua
ADD COMMENT
Topic
Name
6+2 =