not() function

The not() function returns the logical inverse of the normal outcome of true and false generated by a logical expression.

Syntax

not(logical.exp)

Parameter(s)

logical.exp Expression to test.

Description

If the expression evaluates to 0, then 1 is returned. If the expression evaluates to any nonzero value, 0 is returned.

Example(s)

If response is not numeric, this prints "not numeric".

if not(num(response)) then print "not numeric"