User:Phineas: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
function checkG(str) | function checkG(str) | ||
if (string.find(string.lower(str), "gapy")) then | if (string.find(string.lower(str), "gapy")) then | ||
return "Yes, Gaypee is present in the string!" | return true, "Yes, Gaypee is present in the string!" | ||
else | else | ||
return "Nope, I can't find Gaypee in the string!" | return false, "Nope, I can't find Gaypee in the string!" | ||
end | end | ||
return false | return false | ||
end | end | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 15:51, 18 March 2013
Sup
function checkG(str)
if (string.find(string.lower(str), "gapy")) then
return true, "Yes, Gaypee is present in the string!"
else
return false, "Nope, I can't find Gaypee in the string!"
end
return false
end