Difference between revisions of "Str.notin"

From OpenEUO
Jump to: navigation, search
m (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...")
 
(No difference)

Latest revision as of 18:47, 11 November 2010

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.

See Also