The top Cond comes up just T just and will not run
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have something like this the top option on the Cond list will not work it just comes up T on the command line no matter which one I put in the top one I can rearrange them and whatever is in the top comes up T and will not run.
(DEFUN C:THREAD ()
(initget 1 "U A B W M V R Unified Acme Buttress Whitworth ModifiedSqr SharpV woRm")
(setq option (getkword "\nPick a type of Thread [Unified/Acme/Buttress/Whitworth/ModifiedSqr/sharpV/woRm]:<U> "))
(if (null option)(setq option "U"))
(cond
((or
(= option "U")
(= option "Unified")
(unf)
)
)
((or
(= option "A")
(= option "Acme")
(acm)
)
)
((or
(= option "B")
(= option "Buttress")
(but)
)
)
((or
(= option "M")
(= option "ModifiedSqr")
(msq)
)
)
((or
(= option "V")
(= option "SharpV")
(shv)
)
)
((or
(= option "W")
(= option "Whitworth")
(ww)
)
)
((or
(= option "r")
(= option "woRm")
(wrm)
)
)
)
)
(defun unf ()
xxxxxxxxxxx
)
(defun acm ()
xxxxxxxxxxx
)
(defun shv ()
xxxxxxxxxxx
)
(defun but ()
xxxxxxxxxxx
)
(defun msq()
xxxxxxxxxxx
)
(defun ww()
xxxxxxxxxxx
)
(defun wrm ()
xxxxxxxxxxx
)