How to list variables within a table in Lua?

Asked

Viewed 291 times

4

For example:

minion = {
   hp = 1000,
   x = 10,
   y = 25
}

Is there a function I can know how many variables there are within this table?

1 answer

4


Browser other questions tagged

You are not signed in. Login or sign up in order to post.