I was thinking a little bit over the weekend about something I did without thinking on Friday. I was drawing a quick plumbing riser and I kept hitting the wrong function key to flip my isometric plain. A small annoyance but I was going to create a new redefinition real quick. So I literally whipped off a couple liner proced that didnt work. I looked at the code I wrote again and I saw something goofy...I wrote the conditional in that small procedure a weird way. HOWEVER, it makes total sense. I'll show you how I initially wrote the conditional statement.
(cond (getvar 'snapisopair)
(1 (setvar 'snapisopair 2))
(2 (setvar 'snapisopair 0))
(0 (setvar 'snapisopair 1)) )
I dont know why I wrote it like this, I dont know if I was confusing another language or what but the syntax makes sense to me I guess. Here would be my first shot at explaining it.
(conditional <evaluator>
'((<predicate> <subsequent>)...(<predicate> <subsequent>)))
Ultimately, If I were to re-write the cond statement it would require me to create a var or evaluate multiple times but...What do [you] think about this syntax (Existing or my goof up)?
Oh BTW, I realize that if I were to spend time re-writing the cond statement, my procedures would be bloated...It just wouldn't be worth it. This was meant as a discussion into the syntax of conditionals, variables and etc.