| |
|
| |
|
|
| 10 Feb 2017 05:40 PM |
Returns the number of keys the table holds
local foo = {10, 10, 10, 10, 10}
print(#foo)
--> 5
local bar = {23, 323213,21321,312321}
print(#bar)
--> 4
AutoCarrot// Private Drive - Residents Only |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2017 05:41 PM |
Im talking about the actual # in tables
|
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 10 Feb 2017 05:41 PM |
| It returns the array length. |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2017 05:41 PM |
If you're talking about this:
print(#MyTable)
>3
it's the count of the things in the table |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2017 05:42 PM |
Ye i was talking about that.
|
|
|
| Report Abuse |
|
|