Str.notin
From OpenEUO
Revision as of 18:47, 11 November 2010 by Ximan (Talk | contribs) (Created page with "== Calling Pattern == Call local r = sl.str.notin(s1,s2) Args s1,s2 are strings Results r is a boolean == Usage Example == local s = sl.str local r = s.lower('A bum on th...")
Calling Pattern
Call
local r = sl.str.notin(s1,s2)
Args
s1,s2 are strings
Results
r is a boolean
Usage Example
local s = sl.str local r = s.lower('A bum on the beach.','bum') print(tostring(r))
--> false
Description
Notin returns true if and only if string s2 is not a substring of s1. Otherwise it returns false.
Upon Error
Notin fails silently. If notin receives inappropriate arguments then nil is returned.