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"))
)