mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-20 09:04:44 +00:00
23 lines
578 B
Text
23 lines
578 B
Text
|
The '''IMP''' logical operator converts the result of two comparative values and returns a bit result.
|
||
|
|
||
|
|
||
|
{{PageSyntax}}
|
||
|
::first_value {{KW|IMP}} second_value
|
||
|
|
||
|
|
||
|
{{PageDescription}}
|
||
|
* Returns a different result than {{KW|AND}}, {{KW|OR}} or {{KW|XOR}} would.
|
||
|
* Evaluates: first_value ''implies'' second_value.
|
||
|
::If first_value is True then second_value must also be True.
|
||
|
::So if first_value is True, and second_value False, then the condition is False, otherwise True (see table)
|
||
|
|
||
|
|
||
|
{{Template:LogicalTruthTable}}
|
||
|
|
||
|
|
||
|
{{PageSeeAlso}}
|
||
|
* [[Binary]]
|
||
|
* [[Boolean]]
|
||
|
|
||
|
|
||
|
{{PageNavigation}}
|