[OpenSIPS-Devel] [ opensips-Feature Requests-2845500 ] Simplified logic testing

SourceForge.net noreply at sourceforge.net
Thu Aug 27 13:13:38 CEST 2009


Feature Requests item #2845500, was opened at 2009-08-27 13:13
Message generated for change (Tracker Item Submitted) made by viraptor
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086413&aid=2845500&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Stanislaw Pitucha (viraptor)
Assigned to: Nobody/Anonymous (nobody)
Summary: Simplified logic testing

Initial Comment:
Condition logic could be simplified in two cases:

1. "if (value)" could be equivalent to a truth test "if (value>0)"

2. statements that set $retcode could return them directly too, so that "route(x); if ($retcode>0)" can be written as "if (route(x))"

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086413&aid=2845500&group_id=232389



More information about the Devel mailing list