RosettaCodeData/Task/Loops-Break/Emacs-Lisp/loops-break.l
2023-07-01 13:44:08 -04:00

10 lines
243 B
Common Lisp

(defun wait_10 ()
(catch 'loop-break
(while 't
(let ((math (random 19)))
(if (= math 10)
(progn (message "Found value: %d" math)
(throw 'loop-break math))
(message "current number is: %d" math) ) ) ) ) )
(wait_10)