[ic] $ItemField->{field_name}
Kevin Walsh
kevin at cursor.biz
Thu Feb 22 16:11:32 EST 2007
gert at 3edge.com wrote:
> > How to read inside [perl] the current [item-field field_name] value ?
> > Is it possible something like this ?
> > [perl]
> > if ( $ItemField->{field_name} eq "some value" ) {
> > ...
> > }
> > ...
> > [/perl]
> >
> The following came to mind, not sure if it is the most elegant one though:
>
> [perl interpolate=1]
> my $item = '[item-field field_name]';
> if ($item eq "some value") {
> ...
> }
> ...
> [/perl]
>
Also, you could try the following to replace [item-param] tags:
[item-calc]
if ($Row->{field_name} eq 'some_value') {
...
}
...
[/item-calc]
You specifically asked about [item-field], so the above is for general
interest only. $Row is a hashref containing the current row data,
and is only available within [PREFIX-calc].
See the following for more information:
http://www.interchange.rtfm.info/icdocs/tags/PREFIX-calc.html
http://www.interchange.rtfm.info/icdocs/tags/PREFIX-param.html
http://www.interchange.rtfm.info/icdocs/tags/PREFIX-field.html
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list