I have been trying to get this code to work for a while. The problem, as far as I can see, is that the program stops at the first "if" condition. In other words, if I pick from left to right and the variable "ang" is 0.0, the program works fine. If I pick in any other order, it doesn't. I tried using "cond" for each possibility but that didn't work either. I suspect my "if" structure is wrong, but I can't see where that happens. Could someone please point me in the right direction?
I appreciate any help.
Russ