# (logand integer1 integer2 …) [GstarCAD 2012](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <a id="217"></a> ## (logand integer1 integer2 ...) --- Determine what is the logical AND. --- This is a logic function using the Boolean **AND.** The result is generated via manipulating bits. If a bit is "on," it is denoted by a 1; if it is "off," it shows a 0\. When the first bit AND the second bit (in the column) are on, then that bit is on. If the first bit is off AND the second is off, then that bit is off. The AND function requires that all bits in a column be on. ### Examples | Code | Returns | | --- | --- | | (**logand** 5 7 37\) | 5 | | (**logand** 13 2\) | 0 | | (**logand** 27 31 43\) | 11 | **Tell me about...** [(\~ number)](%28-%20number%29.md) [(and expression ...)](%28and%20expression%20...%29.md) [(boole function integer1 integer2 ...)](%28boole%20function%20integer1%20integer2%20...%29.md) [(logior integer1 integer2 …)](IDR_LISP_B218.md) [(lsh integer1 integer2)](%28lsh%20integer1%20integer2%29.md) [(or statement ...)](%28or%20statement%20...%29.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2011](../../../../2011/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28logand%20integer1%20integer2%20-%29.md)