<div>As this thread about the INC/DEC functions had become too long, its time it got its own thread. Please continue the <br>discussion on this thread.</div>
<div> </div>
<div>Regards,</div>
<div>  Nir S<br><br></div>
<div class="gmail_quote">On Sat, May 2, 2009 at 9:11 AM, Nir Simionovich <span dir="ltr">&lt;<a href="mailto:nir.simionovich@gmail.com">nir.simionovich@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hmmm... Tilghman has a valid point here - I didn&#39;t think about that one. In other words, <br>the function should affect the variable on one hand, but also return the value of the operation back to Asterisk - for usage with other applications and functions. </div>

<div> </div>
<div>I think it&#39;s the developer&#39;s responsibility to decide if he wants to use that return value or not.</div>
<div> </div><font color="#888888">
<div>Nir<br><br></div></font>
<div>
<div></div>
<div class="h5">
<div class="gmail_quote">On Thu, Apr 30, 2009 at 1:12 AM, Tilghman Lesher <span dir="ltr">&lt;<a href="mailto:tilghman@mail.jeffandtilghman.com" target="_blank">tilghman@mail.jeffandtilghman.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>On Wednesday 29 April 2009 15:22:25 Benny Amorsen wrote:<br>&gt; Tilghman Lesher &lt;<a href="mailto:tilghman@mail.jeffandtilghman.com" target="_blank">tilghman@mail.jeffandtilghman.com</a>&gt; writes:<br>&gt; &gt; I think it should be a function, not an application, as its function is<br>
&gt; &gt; to change a value, not to do something to the channel.<br>&gt;<br>&gt; There really is nothing to return, and the function would be primarily<br>&gt; called for side effects.<br><br></div>exten =&gt; _XXX,1,Set(foo=3)<br>
exten =&gt; _XXX,n,While(${DEC(foo)})<br>exten =&gt; _XXX,n,DoSomethingInteresting<br>exten =&gt; _XXX,n,EndWhile<br><br>--<br><font color="#888888">Tilghman<br></font>
<div>
<div></div>
<div><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--/" target="_blank">http://www.api-digital.com--</a><br><br>asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>  <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></div></div></blockquote></div><br>
</div></div></blockquote></div><br>