isValid

Syntax

isValid(X)

Arguments

X is a scalar/vector/matrix.

Details

Determine if each element of X is NULL. Return 1 if at least one element is not NULL and 0 otherwise.

Examples

$ isValid(00i);
0

$ isValid(1 NULL NULL 6 NULL 7);
[1,0,0,1,0,1]

$ isValid(1/0);
0