Yeah, well, my head feels like it's going to burst into flames.
K, so, 'rem' might be faster. I don't think a couple milliseconds is going to make too much of a difference here. But I'm learn'n someth'n new.
I just found the Logand info (couldn't find it online, had to revert to an old book written for release 12).
So, the code Se7en posted:
(defun odd? (i)
;; odd?
;; Returns 0 if even and 1 if odd
(logand i 1))
The 'i', to my understanding, is the integer to be tested ?.
So, one would setq i to an integer, and the 'logand' would test i for an odd bitcode ?.
So I could set my code something like:
...
(setq
pt-dist_12 (distance pt1 pt2)
plate-ctr (fix (/ pt-dist_12 3))
)
(setq Odd-Even (logand plate-ctr 1))
(progn
(if (= Odd-Even 0)
(DoStuffForEvenCondition)
(DoStuffForOddCondition)
))
...
Hey look, it worked !!! Too cool. Thanks guys.