4,951
edits
Falterfire (talk | contribs) (Added a fraction function) |
Falterfire (talk | contribs) (contains now returns index of first) |
||
Line 208: | Line 208: | ||
for key, value in pairs(List) do | for key, value in pairs(List) do | ||
if (value == Item) then | if (value == Item) then | ||
return true | return true, key | ||
elseif (IgnoreCase and string.upper(value) == string.upper(Item)) then | elseif (IgnoreCase and string.upper(value) == string.upper(Item)) then | ||
return true | return true, key | ||
end | end | ||
end | end |