[Users] Recursive routes and retcode

Andreas Granig andreas.granig at inode.info
Mon Apr 10 20:39:53 CEST 2006


Daniel-Constantin Mierla wrote:
>> You *can* tell the recursive call to properly return the retcode.
>> Instead of "return(route(2))", enumerate all possible return codes
>> after the recursive call (inside route[2]) and call return with the
>> same retcode:

> instead of all these if-else statements you can use the 'switch' statement.
> http://openser.org/dokuwiki/doku.php?id=openser_core_cookbook#switch

Oh, yes, thanks alot...

Andy




More information about the sr-users mailing list