_count. Number of hash keys
^hash.count[]
The method returns number of hash keys.
Example
Code
$man[
$.name[
Jack
]
$.age[
22
]
$.sex[
m
]
]
^man._count[]
will return:
3
When used in mathematical expressions, numerical value of hash is equal to its keys' number:
^if($man > 2){
greater
}
Copyright © 19972010 Art. Lebedev Studio |
http://www.artlebedev.com
Last updated: 30.03.2004