if string.contains

In VB.NET (since it’s faster to type than C#),


if myString.ToLower.Contains("robert blue") then
blah
End If

If there a string.Contains in Lua? I know it’s a dumb question, I just can’t seem to find anything

**[String.find

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=String.find)**
[lua]if string.find(string.lower(myString), “robert blue”) then
– Do something
end[/lua]

**[String.find

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=String.find)**?

Ninja’d

Oh thanks, exactly what I was looking for. I was searching for “HasValue” and “Contains” xD

<3

Something neat with strings is that you can also do:

myString:lower():find(“banana”)

Even better, sir Lua Lord <3