1 | lol = { "a" , "b" } |
2 |
3 | if unpack (lol) = = "a b" then |
4 | print ( "yep" ) |
5 | end |
It never prints "yep", what is the reason behind that?
You can't compare tuples, much less like that. I highly suggest you go read up on how Tuples work.
1 | t = { "a" , "b" } |
2 |
3 | if unpack (t) = = "a" and "b" then |
4 | print ( 'yep' ) |
5 | end |
"a b" would be considered as one element. thats the problem