|
| 06 Mar 2015 10:17 AM |
something like,
if Table == "" then
maybe? what do I do in this situation? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 06 Mar 2015 10:33 AM |
if next(table) == nil then print ( "Oh noes it's emptyyy" ); end |
|
|
| Report Abuse |
|
|
|
| 06 Mar 2015 10:35 AM |
| I like eLunate's version better. It works on dictionaries. :D |
|
|
| Report Abuse |
|
|
|
| 06 Mar 2015 10:36 AM |
| ^Everyone prefers eLunates way.. xD |
|
|
| Report Abuse |
|
|
|
| 06 Mar 2015 10:38 AM |
@Jarod You mean non-integer keys? Lua's tables are all dictionaries (or associative arrays, because dictionaries is a horrible name). |
|
|
| Report Abuse |
|
|
| |
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 06 Mar 2015 10:56 AM |
Lua tables actually have a dictionary hash and an array hash > The more you know. |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
| |
|