2
I’m trying to verify that two elements of a three-element list are numbers. I just want to check the second and third elements of the list.
I have the following code and cannot identify the error:
(defun ICidadep (lista)
(if((numberp (second lista))and (numberp(third lista)))t))
What if I want to insert one more condition in the if? I have to put two and’s?
– Maria Almeida
@Mariaalmeida If I’m not mistaken you can do
(and condicao1 condicao2 condicao3)
, see: https://ideone.com/OtoSug– hkotsubo