^table.count[]
^table.count[columns|cells|rows] [3.4.2]
When calling without parameters (or with parameter rows) returns the number of rows in the table (int).
When calling with parameter columns returns the number of columns in the table (int).
When calling with parameter cells returns the number of cells in the current row of the table (int).
Example $goods[^table::create{posgoodprice
1 Monitor display1000
2 System control unit 1500
3 Keyboard 150 4Speakers 100 }] Columns: ^goods.count[columns] Rows: ^goods.count[]
The example will output:
Columns: 3 Rows: 4
In expressions, the numeric value of the table equals the amount of its rows: