NOT

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Operators > Logical >

NOT

 

Description

 

Used to perform logical negation in expressions.

 

Syntax

 

result = NOT expression

 

The NOT operator syntax has these parts:

 

PartDescription
resultAny numeric variable.
expressionAny expression.

 

Returns

 

Number

 

Remarks

 

The following table illustrates how result is determined:

 

If expression is

The result is

False

True

True

False

 

Restrictions

 

See also

 

Examples