I am trying to check whether a boolean variable (boolVariable
) is True (T
) using the following code:
(defvar boolVariable T)
(if (= boolVariable T)
(print 'TRUE)
)
However, I get the following error:
- =: T is not a number
This seems strange, considering that I thought that you can check whether variables equal booleans in Lisp?