2022-07-31 21:57:56 +00:00
|
|
|
{{QBDLDATE:07-31-2022}}
|
|
|
|
{{QBDLTIME:23:42:36}}
|
2022-05-20 22:18:31 +00:00
|
|
|
The [[IMP]] logical operator converts the result of two comparative values and returns a bit result.
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
|
|
|
: {{Parameter|result}} = {{Parameter|firstValue}} [[IMP]] {{Parameter|secondValue}}
|
|
|
|
|
|
|
|
|
|
|
|
{{PageDescription}}
|
|
|
|
* Returns a different result from [[AND]], [[OR]] or [[XOR]] - see truth table below.
|
|
|
|
* Evaluates if {{Parameter|firstValue}} '''''imp'''lies'' {{Parameter|secondValue}}.
|
|
|
|
**If {{Parameter|firstValue}} is true then {{Parameter|secondValue}} must also be true.
|
|
|
|
**So if {{Parameter|firstValue}} is true, and {{Parameter|secondValue}} false, then the condition is false, otherwise it is true (see table below).
|
|
|
|
|
|
|
|
|
2022-07-31 21:57:56 +00:00
|
|
|
{{LogicalTruthTable}}
|
2022-05-20 22:18:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
|
|
* [[Binary]]
|
|
|
|
* [[Boolean]]
|
|
|
|
|
|
|
|
|
|
|
|
{{PageNavigation}}
|