cor()

Read(210) Label: sequence, logical or, boolean value,

Description:

Perform logical OR operation over members of a sequence.

Syntax:

A.cor()

Note:

The logical OR operation. The function returns true when at least one member of sequence A is true; otherwise returns false.

Parameters:

A

A sequence

Return value:

true/false

Example:

 

A

 

1

=[2<10,3>4,1!=1]

Return members true, false and false

2

=A1.cand()

true

3

=[1!=1,3<2].cor()

false

4

=[20,1>2].cor()

True; automatically convert to a boolean data type

5

=[null,1<2].cor()

true