Message 1 of 7

Not applicable
11-10-2018
07:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It's been a while, so excuse the crudeness of this routine. I don't know what is wrong with it. It is obvious what it is suppose to do. I'm not asking for someone to write a better or more sleek version. Can't learn that way. Please just tell me what's wrong with this code. TIA
(defun c:ISOMODECYCLE()
(cond
((= (getvar "snapstyl") 0)
(progn (setvar "snapstyl" 1) (setvar "SNAPISOPAIR" 0))
)
((and (= (getvar "snapstyl") 1) (= (getvar "snapisopair") 0)) (setvar "snapisopair" 1))
((and (= (getvar "snapstyl") 1) (= (getvar "snapisopair") 1)) (setvar "snapisopair" 2))
((and (= (getvar "snapstyl") 1) (= (getvar "snapisopair") 2)) (setvar "snapstyl" 0))
)
)
Solved! Go to Solution.