121bytes
|
  |
| Joined: 20 Aug 2014 |
| Total Posts: 250 |
|
|
| 03 Nov 2015 08:40 PM |
Other than manually, not 'tab = {[Value] = true}' but like you can through a regular table?
yudodis |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 03 Nov 2015 08:43 PM |
if I understood your question correctly:
local tab = {}
tab.bool = true
for k, v in pairs(tab)do print(k.."-"..v) end |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 03 Nov 2015 08:43 PM |
| and you may have to use tostring there, dunno if you can print out a bool without an error |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2015 09:00 PM |
| Print and concatenation both call tostring, afaik. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Nov 2015 09:16 PM |
| NO LOL, it would be really stupid if concatenation also called tostring. |
|
|
| Report Abuse |
|
|