Original Post
I'm quite new to LISP and am trying to write an auxiliary isDigit function tell if the atom passed to it is a digit. The last line there flags an error saying "An object cannot start with #/". Is that not the way you would do an "else"? [Edited by - CyberSlag5k on April 10, 2005 4:12:10 PM]
(defun isDigit(x)
(if(eql x 0) T)
(if(eql x 1) T)
(if(eql x 2) T)
(if(eql x 3) T)
(if(eql x 4) T)
(if(eql x 5) T)
(if(eql x 6) T)
(if(eql x 7) T)
(if(eql x 8) T)
(if(eql x 9) T)
(nil)))