mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-26 09:45:54 +00:00
Added new _STRCMP and _STRICMP commands for quick string comparisons. Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders. Altered UCASE and LCASE routines to be faster in some situations for us.
31 lines
693 B
Plaintext
31 lines
693 B
Plaintext
The '''OR''' coditional operator adds an alternative in a [[IF...THEN]] or [[Boolean]] statement.
|
|
|
|
|
|
|
|
* OR adds an alternative to another conditional evaluation. IF True then the statement evaluation is True.
|
|
* Parenthesis may be used to clarify an evaluation.
|
|
* Can be confused with the [[OR]] numerical operator.
|
|
|
|
|
|
{{Template:RelationalTable}}
|
|
|
|
|
|
''Example:''
|
|
{{CodeStart}}
|
|
a% = 100
|
|
b% = 50
|
|
|
|
IF (a% > b% AND a% < 100) OR b% = 50 THEN PRINT "True"
|
|
{{CodeEnd}}
|
|
{{OutputStart}}
|
|
True
|
|
{{OutputEnd}}
|
|
: ''Explanation:'' The first evaluation was False, but the OR evaluation made the statement true and the code was executed.
|
|
|
|
|
|
|
|
''See also:''
|
|
* [[AND (boolean)]]
|
|
|
|
|
|
{{PageNavigation}} |