# (ssmemb entity-name selection-set)
[GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="276"></a>
## (ssmemb entity-name selection-set)
---
Determine whether an entity is in the selection set.
---
This function determines if the entity, *entity-name*, is in the selection set, *selection-set*. This function searches through the entities within the selection set to find if *entity-name* is included. If it is included, the entity's name is returned. If not, nil is returned.
### Examples
| Code | Comments |
| --- | --- |
| (setq sset1 (ssadd)) | Creates a new selection set called sset1. |
| (ssadd ent1 sset1) | Adds ent1 to sset1. |
| (**ssmemb** ent1 sset1) | Asks if ent1 is a member of sset1. Yes, so entity name is returned. |
| (**ssmemb** ent2 sset1) | Asks if ent2 is a member of sset1. No, so nil is returned. |
**Tell me about...**
[(setq symbol1 statement1 \[symbol2 statement2\] ...)](%28setq%20symbol1%20statement1%20-symbol2%20statement2-%20...%29.md)
[(ssadd \[entity-name \[selection-set\]\])](%28ssadd%20-entity-name%20-selection-set-%29.md)
[(ssdel entity-name selection-set)](%28ssdel%20entity-name%20selection-set%29.md)
[(ssget \[mode\] \[point1 \[point2\]\] \[point-list\] \[filter-list\])](%28ssget%20-mode-%20-point1%20-point2-%20-point-list-%20-filter-list-%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 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28ssmemb%20entity-name%20selection-set%29.md)