0

I'm getting an error trying to do the if statement within the loop for statement. Is it possible to put an if statement here?

(princ "Enter a number: ")

(setq number(read))

(setq number (- number 1))

(setq primechecker nil)

(loop for x from 2 to number 
   do ((if (> x 5)(princ 5)(princ x))))
Rainer Joswig
  • 131,638
  • 10
  • 209
  • 336
Kevin
  • 477
  • 2
  • 6
  • 17

0 Answers0