Navigation:  thinBasic language > Operators > Logical >

NOT

Previous pageReturn to chapter overviewNext page

 

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