I want to know how to make the user select text or mtext only, if they select anything else it will loop until it is true.
My feeble attempt
(defun c:foo()
(while
(setq txt(cdr(assoc 1(entget (ssname (ssget "_:S+." '((0 . "*TEXT"))) 0)))))
(princ "error")
)
)