Navigation:  thinBasic language > Operators > Logical >

NOT

Previous pageReturn to chapter overviewNext page

 

Description

 

Used to perform logical negation on an expression.

 

Syntax

 

result = Not expression

 

The AND 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

 

In addition, the Not operator inverts the bit values of any variable and sets the corresponding bit in result according to the following table:

 

If bit in expression is

The result is

0

1

1

0

 

 

Restrictions

 

See also

 

Examples

 

 

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.6.0.10 Web Site: http://www.thinbasic.com