Map and Table Calculation

NOT operator

Returns true if a is false and inverse, i.e. NOT a.

Syntax

NOT (a)

Input

a is a boolean expression
Domain type: any Bool domain

Output

NOT returns: a boolean value, i.e. True, False or undefined
Domain: system domain Bool

Notes:

Tips:

Usable in

MapCalc, TabCalc, Simple calculators

Examples

MapCalc examples:

OutMap1 = NOT(InMap1 >= 20)

 

InMap1

OutMap1

5 10 -10
20 0 30
? 40 45
True True True
False True False
? False False

 

OutMap2 = NOT(Landuse="Forest")

 

Landuse

OutMap2

Forest Forest Grass
Lake Lake Grass
? Grass Forest
False False True
True True True
? True False

TabCalc examples:

OutCol1 = NOT (InCol1 >= 20)

 

InCol1

OutCol1

5

True

10

True

-10

True

20

False

0

True

30

False

?

?

40

False

45

False

 

OutCol2 = NOT(Landuse="Forest")

 

Landuse

OutCol2

Forest

False

Forest

False

Grass

True

Lake

True

Lake

True

Grass

True

?

?

Grass

True

Forest

False

See also: