EQV: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "The EQV operator returns a value based on the ''equivalence'' of two conditions or values. {{PageSyntax}} : {{Parameter|result}} = {{Parameter|firstValue}} EQV {{Parameter|secondValue}} {{PageDescription}} * Returns true (-1) when both values are the same (''equivalent''). * Turns a bit on if both bits are the same, turns a bit off if both bits are different. {{Template:LogicalTruthTable}} {{PageSeeAlso}} * Binary * Boolean {{PageNavigation}}")
 
No edit summary
Line 11: Line 11:




{{Template:LogicalTruthTable}}
{{LogicalTruthTable}}





Revision as of 12:41, 5 June 2022

The EQV operator returns a value based on the equivalence of two conditions or values.


Syntax

result = firstValue EQV secondValue


Description

  • Returns true (-1) when both values are the same (equivalent).
  • Turns a bit on if both bits are the same, turns a bit off if both bits are different.


Template:LogicalTruthTable


See also



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