Could anyone give me a help for the code below?
(defun c:test ()
(setq A (getreal "\nEnter a number: "))
(setq B (getreal (strcat "\nEnter a number "
(progn (if (<= A 100) "(<= 50): ")
(if (> A 100) "(> 50): ")))))
)
If A = 150, it will give the user "Enter a number (> 50): "
If A = 10, it will give the user "; error: bad argument type: stringp nil"
What is wrong it gives an error message when A < 100?
Thanks for your help.