any

This function returns the scalar value True if any of the values of its parameter are True.


Synopsis

	function any(
		logical_array : logical
	)

Arguments

logical_array
A logical array of any dimension.

Description

The any function returns a single logical scalar value if any of the non-missing value elements of the logical_array parameter are True, or can be evaluated as True. This function is useful for changing multidimensional results from logical expressions into a single scalar value, which is required by the if statement. All numeric values can be coerced to a logical value. Values that are 0 are interpreted as False and values that are non-zero are interpreted as True.

Reference Manual Control Panel

NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?


$Revision: 1.8 $ $Date: 1998/06/15 21:28:55 $