# (and expression ...)
[GstarCAD 2012](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="122"></a>
## (and expression ...)
---
Apply the logical AND.
---
This function performs a logical AND to the *expression* that precedes it. If both statements return T (true), the **and** function returns T. If either or both of the statements returns nil (false) the **and** function returns nil.
### Examples
| Code | Returns |
| --- | --- |
| (setq d 9\) (**and** (\> d 12\) (\< d 13)) | nil |
| (setq d 12.25) (**and** (\> d 12\) (\< d 13)) | T |
**Tell me about...**
[(\~ number)](%28-%20number%29.md)
[(boole function integer1 integer2 ...)](%28boole%20function%20integer1%20integer2%20...%29.md)
[(not item)](%28not%20item%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/%28and%20expression%20...%29.md)