8.4.6 COUNT_Scalar Procedure

The COUNT_Scalar procedure provides a function equivalent to the COUNT() intrinsic function for logical scalars. It returns the number of trues in the input, so it is 1 if the input scalar is true and 0 if the input scalar is false.

Calling syntax:

Integer = COUNT(L) |

Input variable:

L |
Input logical scalar variable. |

Output variable:

COUNT_Scalar |
Set to the number of trues in the input (either 0 or 1). |

The COUNT_Scalar code listing contains additional documentation.

Michael L. Hall