Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a issue id like to solve.
In my substr i want to replace 16 with with pos..
i dont know how to get around it and make it work..
thanks.
(defun c:001 () (setq plan "1"); (setq pos "2") (setq name (getvar "dwgname")) (setq pos2 (substr name 16 1))
;(setq pos2 (substr name pos 1)) <---- someone that could give me some help and explain why it wint work? (if (= plan pos2) (princ "This is true") (princ "This is false") );end of if statement );defun
Solved! Go to Solution.