Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys i need some help.
I am trying to make a lisp that if a selection set has items in it, it needs to do "this" otherwise do "that".
My Code:
(defun c:foo (/)
(setq xr(ssget "x" '((0 . "INSERT")(8 . "..TEST"))))
(setq xrnum (sslength xr))
The Next part i need help with not sure how to do the if argument if there are values or not:
(cond
((= xrnum nil) <---- CANT GET THIS RIGHT not sure how to do the contains nothing or contains something
(do "this")
))
Civil 3D Certified Professional
Solved! Go to Solution.