count. Number of rows in table

^table.count[]

Returns the number of rows in the specified table (
int).

Example
$goods[^table::create{pos   good   price
1   Monitor display   1000
2   
System control unit   1500
3   
Keyboard   15
}]
Amount^goods.count[]

The example will output:
Amount: 3

In expressions, the numeric value of the table equals the amount of its rows:

^if($goods > 2){more}


Copyright © 1997–2010 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 21.09.2007