[ic] if-comparison within the tree-tag

Paul Jordan interchange-users@icdevgroup.org
Sat Nov 30 12:39:01 2002


> Hi list,
>
> I can't somehow get my if-comparisons to work..
> I have a scratch value that gets a numeric value:
>
>     [set temp][calc][item-param mv_increment]+1[/calc][/set]
>
>
> I want to compare it with [item-param mv_increment] (inside a
> tree-tag):
> These is just two of may ways I tried:
>
> [if scratch temp == [item-param mv_increment]]
>     foo
> [/if]
>
> [if-item-param mv_increment eq [scratch temp]]
>     foo
> [/if-item-param]
>
> and so on..
>
> I could do it with Perl, but I don't know how to catch the [item-param
> mv_increment] inside the [perl ]tags :-(
>
>
> Any small hint would save my day :)
>
>
> René


Hi Rene Try:
[if term="[item-param mv_increment]" op="==" compare="[scratch temp]"]
... [/if]

I don't know how efficient that will be but it should work... Also
double check your [set][/set] pair, I think that should be
[seti][/seti], however since you use the calc tags... maybe seti is
irrelevant, I don't know.

HTH

Paul