count - return number of variable values

SYNOPSIS

<count $var>


DESCRIPTION
The count function counts the number of values a variable has.

Note that in version 8 syntax - i.e. when the syntaxversion pragma (here) is 8 or more - a variable's number of values may also be obtained with $#var (here).


DIAGNOSTICS
count returns the (integer) number of values the $var variable has.


EXAMPLE

<$x = this is a test>
<count $x>
$ret values.

The output would be:

4 values.


CAVEATS
The count function was added Aug. 29 1996.


Copyright © Thunderstone Software     Last updated: Jul 17 2021
Copyright © 2021 Thunderstone Software LLC. All rights reserved.