104 posts
Location
Somewhere in my mind, to which only makes sense to me.
Posted 01 May 2014 - 12:05 AM
hi there i have already done some deep digging for this question but can't find the answer. if you wanted to check if a string is blank, how would you do that?
something like this ?
if mystring == nil then
print("True!")
end
571 posts
Location
Some Fish Bowl in Ohio.
Posted 01 May 2014 - 12:08 AM
Well, I don't knwo exactly how, but I know your method won't work. Assuming mystring exists, it will always be not nil. Well, except if mysting = nil is in there.
1281 posts
Posted 01 May 2014 - 12:13 AM
Like gold says, "" and nil is not the same. However, to determine if a string is emtpy, you can simply check it's length.
if #myString == 0 then
104 posts
Location
Somewhere in my mind, to which only makes sense to me.
Posted 01 May 2014 - 12:14 AM
oh… sorry now i feel like this was a dumb question, thanks.