[Tutor] how to stop a function

Kent Johnson kent37 at tds.net
Tue Apr 24 17:25:26 CEST 2007


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