IMP

From QB64 Phoenix Edition Wiki
Revision as of 14:49, 20 April 2022 by SMcNeill (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The IMP logical operator converts the result of two comparative values and returns a bit result.


Syntax

result = firstValue IMP secondValue


Description

  • Returns a different result from AND, OR or XOR - see truth table below.
  • Evaluates if firstValue implies secondValue.
    • If firstValue is true then secondValue must also be true.
    • So if firstValue is true, and secondValue false, then the condition is false, otherwise it is true (see table below).


Template:LogicalTruthTable


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link