Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Table.Count incorrect if table contains one more more nil values

$
0
0
I just noticed that Table.Count only counts non-nil values. For example:

tbl = {"hello", nil, "world"};
tblcount = Table.Count(tbl);

tblcount is equal to 2 instead of 3. Is this a bug or a feature? Is there a way to get the actual Table count?

I also tried using LUA function table.getn with different, but still incorrect results.

I am using SUF 9.2.

Viewing all articles
Browse latest Browse all 2105

Trending Articles