How would you do an expression like: if $x &lt; 24 in a condition tag? Just curious. I would like to make sure that is properly documented.<br>-MC<br><br><div class="gmail_quote">On Sat, Oct 31, 2009 at 10:42 AM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="word-wrap: break-word;">You actually can use these in conditions.  Just need to be careful that the var you are conditioning on is already set.<div>
<br></div><div>Mike</div><div><div></div><div class="h5"><div><br><div><div>On Oct 22, 2009, at 1:54 PM, Michael Collins wrote:</div><br><blockquote type="cite"><br><br><div class="gmail_quote">On Thu, Oct 22, 2009 at 5:51 AM, Rupa Schomaker <span dir="ltr">&lt;<a href="mailto:rupa@rupa.com" target="_blank">rupa@rupa.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

cond would be helpful here?  I updated the wiki on this one just now<br>
with a bit more detail.  It is a api call. so, you&#39;d use it like:<br>
<br>
${cond(eval ? trueval : falseval)}<br>
<br>
so to get a value of ERR if the var my myvar is &gt; 15 you could:<br>
<br>
${cond(${myvar} &gt; 15 ? ERR : OK)}<br>
<br>
If both sides of the comparison operator are numeric then it does<br>
numeric comparison otherwise it does lexical string comparison.<br></blockquote><div><br>Rupa,<br><br>Yes, you can do the set/cond API trick but you can only do it in the action or anti-action tags, not in the condition tags. I&#39;m sure you know that but I want all those reading this thread to make the connection. <br>

-MC<br>
</div></div><br></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>