Can someone help me. I want to ask the user a question and then do something whether they say Yes or No.
I have tried a few ways but not really sure if i am close.
Thanks
I have tried a few ways but not really sure if i am close.
Thanks
Discuss and learn Lisp programming of all dialects
This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.
4 posts · 3340 views
(if (string= (string-upcase (read-line *standard-input* NIL "")) "YES")
(do-yes-stuff)
(do-other-stuff))
There is more than one way to skin a cat. You may want to look at CL cookbook => Filesgugamilare wrote:There are two function which can help you:OMG I would never guessed that was within the standard library
http://www.lispworks.com/documentation/ ... y_or_n.htm