Posted 25 April 2016 - 11:35 PM
Topic explains its all.
local needle = "he"
local haystack = "he dances and runs"
print(string.find(haystack, needle)) -- prints "true"
needle = "this isn't in haystack"
print(haystack:find(needle)) -- prints "false" (if you like OOP-type stuff)