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
(if (string= (string-upcase (read-line *standard-input* NIL "")) "YES")
(do-yes-stuff)
(do-other-stuff))
gugamilare wrote:There are two function which can help you:
http://www.lispworks.com/documentation/HyperSpec/Body/f_y_or_n.htm
Users browsing this forum: No registered users and 3 guests