Posted 30 October 2013 - 07:44 PM
I didn't know how to title this just right. But here is what's going on.
it will return "1010". This is expected. I know that it's supposed to return the first character and the last character. However, this isn't ideal for finding a single character like my "=". Is there an easy way to return just "10" from that?
Also I know I could use p1, p2 = string.find(slotNumb, "=") but I'm hoping for something that doesn't use a variable, I'm picky like that lol.
blah = [[slotNumb = 12
]]
string.find(blah[1], "=")
it will return "1010". This is expected. I know that it's supposed to return the first character and the last character. However, this isn't ideal for finding a single character like my "=". Is there an easy way to return just "10" from that?
Also I know I could use p1, p2 = string.find(slotNumb, "=") but I'm hoping for something that doesn't use a variable, I'm picky like that lol.