1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 10:30:36 +00:00
QB64-PE/internal/help/IMP.txt
SteveMcNeill 33adc04fc4 Add temp folder to repo. It's necessary as well!
Just more initial setting on... nothing much to see here.
2022-04-28 13:39:56 -04:00

25 lines
733 B
Plaintext

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}}
<