I made the following function:
Code: Select all
(defun getInputTypeRead ()
(let ((inputSeq (read)))
(cond
((EQ inputSeq nil) 0)
((not (equal (first inputSeq) 'bees)) 0)
(T 1))))
(bees are nice)
I want this to come up with a value of 1. I've tried EQ, equal, equalp, and none of them seem to be working; they've been evaluating to 0.
Basically the input has to come in in this form, and i want to check if the first word is "bees" without the quotes. Just the symbol bees.
If I change the line to
((not (equalp (first inputSeq) "bees")) 0)
and the input to ("bees" are nice)
then it evaluates to 1 but I don't want that type of input.
I hope the question is clear, and thanks!