contents.gifindex.gifprev1.gifnext1.gif

Imp Operator

Purpose

Used to perform a logical implication on two expressions.

Syntax

result = expr1 Imp expr2

Notes

The following table illustrates how result is determined.

If expr1 is
And expr2 is
result is


true (nonzero)
true
True (-1)
true
false (0)
False (0)
true
Null
Null
false
true
True
false
false
True
false
Null
True
Null
true
True
Null
false
Null
Null
Null
Null


The Imp operator performs a bit-wise comparison of identically positioned bits in two numeric expressions and sets the corresponding bit in result according to the following truth table.

If bit in expr1 is
And bit in expr2 is
result is


0
0
1
0
1
1
1
0
0
1
1
1


Bit-wise comparisons can be performed only in Access Basic.