dimanche 12 juin 2016

Lisp. How to use (or) in if statement?

Here is my if-statement

(if (equal 1 (or 3 2 1))
    (write "ok")
    (write "wrong"))

I trying to execute code below:

(equal 1 (or 3 2 1))

It returns nil

How cat i use (or) properly in this case?

Aucun commentaire:

Enregistrer un commentaire