PDA

View Full Version : IF OR = COND



cadking2k5683822
2019-10-07, 09:12 PM
I want autolisp to check and see if MS is = to any of these what is wrong I have used (cond (or it just will not run the progn

(IF
(= MS "M26" "M42" "M45" "M48" "M52" "M56" "M60" "M64" "M68")
(PROGN

rkmcswain
2019-10-07, 10:16 PM
(if (member ms (list "M26" "M42" "M45" "M48" "M52" "M56" "M60" "M64" "M68"))
(progn
..................