Article 5N7GG Common Lisp beginer If else

Common Lisp beginer If else

by
Petr Strajt
from LinuxQuestions.org on (#5N7GG)
Hi everybody,

I am beginer in Common Lisp. I am trying to create a code that asks the user if he wants to run firefox browser with y/n answer.

I have this code

Code:(print"Do you want to run Firefox? y/n")
(setq answer(read))
(if (= answer "y"))
(run-program "firefox")
than
(/= answer y)
(print "something")If I run this code I receive this error message: *** - EVAL: too few parameters for special operator IF: (IF (= ANSWER "y"))

How to resolve this issue? Thank you for your advicelatest?d=yIl2AUoC8zA latest?i=CGW9i5F5YuU:RT6F4fJopqo:F7zBnMy latest?i=CGW9i5F5YuU:RT6F4fJopqo:V_sGLiP latest?d=qj6IDK7rITs latest?i=CGW9i5F5YuU:RT6F4fJopqo:gIN9vFwCGW9i5F5YuU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments