Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

check if string contains word lua

ourstring = "example"
if string.match(ourstring,"ex") then
   print(ourstring.." contains ex!"
end

-- OR

if string.find(ourstring,"ex") then
   print(ourstring.." contains ex!"
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #string #word #lua
ADD COMMENT
Topic
Name
2+8 =