From: Hannah Schroeter
Subject: Re: Beginner question
Date: 
Message-ID: <bnlp8r$42g$2@c3po.use.schlund.de>
Hello!

General Lisp questions belong to comp.lang.lisp.

tvr <·······@yahoo.com> wrote:

>How can I return t/nil from a function?
>I basically want to break out of a function.

>I want something like this.
>(defun rettest() 
>    (when (> 10 0) 
>         (return t)
>     )
>)

Your style isn't particulary Lisp-like.

Try this:

(defun foo ()
  (when (> 10 0)
    (return-from foo t))
  42)

Kind regards,

Hannah.