Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 20 Dec 2013 11:13 PM |
if MyTable.OMG == true and MyTable["OMG2"] == false then
|
|
|
| Report Abuse |
|
|
| |
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 20 Dec 2013 11:14 PM |
| Pre's wont work in this case. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 20 Dec 2013 11:14 PM |
| wazap is correct, Preponderance those are for numeric-named indices, these are obviously not numeric-based. |
|
|
| Report Abuse |
|
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 20 Dec 2013 11:17 PM |
| showing 2 possible ways you can format it. |
|
|
| Report Abuse |
|
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
|
| 20 Dec 2013 11:47 PM |
theee fffffffff i should stop foruming by 12am...
._.
sowwy |
|
|
| Report Abuse |
|
|
|
| 21 Dec 2013 12:07 AM |
MyTable = {["OMG"] = true, ["OMG2"] = false}
for i,v in pairs(MyTable) do print(tostring(i)..' is',(v)) end
--
if MyTable.OMG and not MyTable.OMG2 then print'geniuz' end |
|
|
| Report Abuse |
|
|