(logior integer1 integer2 ...)


Determine what is the logical OR.


This is a logic function using the Boolean OR. The result is generated via bits, similar to the logand function. If a bit is "on," it is denoted by a 1; if it is "off," a 0 is displayed. If the first bit OR the second bit (in the column) are on, then that bit is on. The OR function requires that at least one bit in a column be on.

Examples

Code Returns
(logior 5 7 37) 39
(logior 17 5) 21

Tell me about...

(~ number)

(and expression ...)

(boole function integer1 integer2 ...)

(lsh integer1 integer2)

(or statement ...)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language