How to get array count?

In the official LUA docs I find the function table.getn(array) to receive the number of entries. But this doesn’t work in Halion. How can I find the number count for an array?

Easiest way is to add a # in front of the table name. # returns the length of a variable, in a table that will be the entries.

testArray = {“a”, “b”, “c”, “d”, 1, 2, 3, 4}

will print 8

Awesome! Thanks!