I have this list
Code: Select all
(compare `((something 5) (qwer 3)) 2)
and im trying to compare the 5 with the 2, but I get this error
Error: (5) is not of type (OR RATIONAL FLOAT). Is there anyway I can compare these two values?
Code: Select all
(defun compare (L N)
(if
(> (cdr (car L) N ))
T
)
)