|
| 26 Mar 2017 05:26 AM |
So ive seen in some scenarios where in like table's and such people refrence there table with the # operator to get the characters so basically like this for i = 1,#whatevertable I dont see the need of that can anyone explain briefly.
R$0 |
|
|
| Report Abuse |
|
|
| |
|
| |
|
CrniOrao
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 2274 |
|
|
| 26 Mar 2017 06:31 AM |
# gets a number of how many things are inside a table.
table = {"User", 32, "Fire"}
print(#table)
Output > 3 |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2017 06:32 AM |
(as well as strings)
capitalist atheist |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2017 06:32 AM |
also only for array-like tables, dictionaries don't havea length (returns 0)
capitalist atheist |
|
|
| Report Abuse |
|
|