Message 1 of 2

Not applicable
05-27-2015
06:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I am trying to a function which will return if it finds anything in a list otherwise it will return false(nill) in this case, but it keeps returning true;l
thank you
(defun lookup(someval) (setq listofvalue (list "Apple" "Boat" "Fan" "List")) (foreach itm listofvalue (if (wcmatch (strcase someval) itm) T ) ) nil ) (defun c:test () (if (lookup "Affp*") princ "An apple was found!" ) )
Solved! Go to Solution.