mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 10:15:09 +00:00
23 lines
707 B
Text
23 lines
707 B
Text
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]].
|
|
* 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).
|
|
|
|
|
|
{{Template:LogicalTruthTable}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[Binary]]
|
|
* [[Boolean]]
|
|
|
|
|
|
{{PageNavigation}}
|