Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

if non of the above COND statement then do this - help

1 REPLY 1
Reply
Message 1 of 2
Anonymous
185 Views, 1 Reply

if non of the above COND statement then do this - help

Hi.

How do you provide a else do this if non of the above COND statement is true???
ie. if these 3 folders below are not found, then do this
Thanks

(cond
((wcmatch FolderName "*elec*")(setq s "E-layer"))
((wcmatch FolderName "*mech*")(setq s "M-layer"))
((wcmatch FolderName "*fire*")(setq s "F-layer"))
)
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

This should work,

(cond
((wcmatch FolderName "*elec*")(setq s "E-layer"))
((wcmatch FolderName "*mech*")(setq s "M-layer"))
((wcmatch FolderName "*fire*")(setq s "F-layer"))
(T (do this....)) <<<----
)
wrote in message news:6063804@discussion.autodesk.com...
Hi.

How do you provide a else do this if non of the above COND statement is
true???
ie. if these 3 folders below are not found, then do this
Thanks

(cond
((wcmatch FolderName "*elec*")(setq s "E-layer"))
((wcmatch FolderName "*mech*")(setq s "M-layer"))
((wcmatch FolderName "*fire*")(setq s "F-layer"))
)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost