52 posts
Location
Earth
Posted 12 July 2015 - 07:48 PM
How do I find any version of a string? For example, I type in Testing and it works. I type in Testing like testing and it still works.
570 posts
Posted 12 July 2015 - 08:41 PM
To do this, you simply have to convert both strings to the same case and then compare them. You can do this with string.upper or string.lower.
For example:
local str1 = "HeLlO WORlD"
local str2 = "hELLO WoRld"
local areEqual = str1:lower() == str2:lower()
print(tostring(areEqual)) --# Prints true
52 posts
Location
Earth
Posted 12 July 2015 - 09:15 PM
Forgot to mention, but also something like saying with MoarPerpiherals to a chatbox ##CC:say:whatever. I don't know if this needs to find another string or not but thanks for the advice ._.