Map and Table Calculation

OR operator

Returns if either a or b is true, or if both a and b are true, i.e. a OR b.

Syntax

(a) OR (b)

Input

a is a boolean expression
Domain type: any Bool domain
b is a boolean expression
Domain type: any Bool domain

Output

OR 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:

OutMap = (InMapA >= 20) OR (InMapB >= 70)

 

InMapA

InMapB

OutMap

5 10 -10
20 0 30
? 40 45
10 90 70
5 50 75
35 80 ?
False True True
True False True
? True True

 

OutMap2 = (Landuse="Forest") OR (DEM > 1000)

 

Landuse

DEM

OutMap2

Forest Forest Grass
Lake Lake Grass
? Grass Forest
800 900 1000
-900 0 1200
1100 1300 1600
True True False
False False True
True True True

 

OutMap3 = (Landuse="Forest") OR (Landuse="Grass")

 

Landuse

OutMap3

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

TabCalc examples:

OutCol = (InColA >= 20) OR (InColB >= 70)

 

InColA

InColB

OutCol

5

10

False

10

90

True

-10

70

True

20

5

True

0

50

False

30

75

True

?

35

?

40

80

True

45

?

True

 

OutCol2 = (Landuse="Forest") OR (DEM > 1000)

OutCol3 = (Landuse="Forest") OR (Landuse="Grass")

 

Landuse

DEM

OutCol2

OutCol3

Forest

800

True

True

Forest

900

True

True

Grass

1000

False

True

Lake

-900

False

False

Lake

0

False

False

Grass

1200

True

True

?

1100

True

?

Grass

1300

True

True

Forest

1600

True

True

See also: