[Tutor] how to stop a function

shawn bright nephish at gmail.com
Tue Apr 24 17:27:27 CEST 2007


jeeze, thanks, sorry, stupid question.

On 4/24/07, Kent Johnson <kent37 at tds.net> wrote:
> shawn bright wrote:
> > now there is one function that i have a kinda nested if else
> > conditions that i need to stop if necessary
> >
> > if value == 1:
> >     if next_val == 4:
> >        do this or that
> >     else:
> >        here i need the function to just die
> >     do somthing here
> >
> > is there something i can do to make this happen?
>
> return
>
> Kent
>


More information about the Tutor mailing list