mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-10 17:05:12 +00:00
aeb9c0668b
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
27 lines
778 B
Plaintext
27 lines
778 B
Plaintext
{{QBDLDATE:05-20-2022}}
|
|
{{QBDLTIME:23:13:38}}
|
|
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).
|
|
|
|
|
|
{{Template:LogicalTruthTable}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[Binary]]
|
|
* [[Boolean]]
|
|
|
|
|
|
{{PageNavigation}}
|
|
|