[OpenSIPS-Users] return() from within a while()
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Mar 9 14:12:51 CET 2009
Hi Jeff,
it is like in C - a return will exit the current route(), doesn't matter
where you are (in a while, an if, a case, etc)
if you want to terminate the while, use "break" - it will jump after the
while().
Regards,
Bogdan
Jeff Pyle wrote:
> Hello,
>
> Here's an easy one for you smart programming type people.
>
> If a return(-1) is executed from within a while() loop, will it still return
> to the previous route block, or will it only exit the while() and continue
> processing in the current route block?
>
>
> Thanks,
> Jeff
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list