vendredi 8 avril 2016

Lisp if not nil

I am so sorry for having to ask this question but I'm trying to do a simple if statement that checks if a variable is nil or not.

(defun test (input)
  (let ((testvar (first input)))
   (if (not nil testvar)
    (do this)
    (do that))
))

Could anyone explain to me the proper syntax?

Aucun commentaire:

Enregistrer un commentaire