22 Oct
2009
22 Oct
'09
5:54 p.m.
On Thu, Oct 22, 2009 at 5:51 AM, Rupa Schomaker <rupa@rupa.com> wrote:
cond would be helpful here? I updated the wiki on this one just now with a bit more detail. It is a api call. so, you'd use it like:
${cond(eval ? trueval : falseval)}
so to get a value of ERR if the var my myvar is > 15 you could:
${cond(${myvar} > 15 ? ERR : OK)}
If both sides of the comparison operator are numeric then it does numeric comparison otherwise it does lexical string comparison.
Rupa, 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'm sure you know that but I want all those reading this thread to make the connection. -MC