BOR
y = a BOR b
Bitwise OR.
Truth table:
a | b | a BOR b |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |
See OR for logical or.
Example
print "1001 BOR 1110 = "; bin(0b1001 BOR 0b1100)
' Output: 1001 BOR 1110 = 1101
Code samples using BOR
3d_palmx.bas
7gables.bas
base64.bas
conrec-sb-v01.bas
crgb.bas
demanda.bas
dogstar5.bas
Eliza.bas
eliza.bas
fizzle2.bas
g2 Life.bas
g3 Life.bas
g6 Life.bas
GUI RPSLS v2.bas
irc-bot.bas
kaleidoscope v2.bas
kaleidoscope v3.bas
kaleidoscope.bas
Lava 2.bas
matches.bas
matches.bas
maze generator.bas
mine sweeper v4sb.bas
mouse springs v1.bas
mouse springs.bas
navigation.bas
persian carpet.bas
sokoban.bas
sokoban.bas
Language
AND
AS
BAND
BG
BOR
BYREF
CALL
CASE
CATCH
CONST
DECLARE
DEF
DO
ELIF
ELSE
ELSEIF
END
END TRY
ENDIF
EQV
EXIT
FALSE
FI
FOR
FUNC
GOSUB
GOTO
IF
IFF
IMP
IN
LABEL
LET
LIKE
LOCAL
LSHIFT
MDL
MOD
NAND
NEXT
NOR
NOT
ON
OR
REM
REPEAT
RETURN
RSHIFT
SELECT
STEP
STOP
SUB
THEN
THROW
TO
TRUE
TRY
UNTIL
USE
USG
USING
WEND
WHILE
XNOR
XOR
If there is insufficient information on this page and you wish learn more about BOR,
please send an email to smallbasic@gmail.com. You can help to improve information about
BOR by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.