Basically im trying to make it return true if a specific word is found in a sentance, example - sentance = i like fried pie word = pie, would return true because the word pie is in that sentance.
Sorry for any mistakes, im on my iphone
[lua]
local haspie = string.find( "i like fried pie", "pie" ) != nil
[/lua]
Thanks, i was trying something like that but doing != 0 instead of nil
It returns nil because 0 would signify that the string was in position 0 in the string.
Ah, thanks for the info.
Sorry, you need to Log In to post a reply to this thread.