2017-10-10 14:55:21 +00:00
|
|
|
The [[IMP]] logical operator converts the result of two comparative values and returns a bit result.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
2017-10-10 14:55:21 +00:00
|
|
|
: {{Parameter|result}} = {{Parameter|firstValue}} [[IMP]] {{Parameter|secondValue}}
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageDescription}}
|
2021-01-04 18:45:32 +00:00
|
|
|
* Returns a different result from [[AND]], [[OR]] or [[XOR]] - see truth table below.
|
2017-10-10 14:55:21 +00:00
|
|
|
* 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).
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{Template:LogicalTruthTable}}
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
|
|
* [[Binary]]
|
|
|
|
* [[Boolean]]
|
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
{{PageNavigation}}
|