[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] $ItemField->{field_name}


suppressed wrote:
Marco Mescoli writes:
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]

interpolate=1 isn't necessary because [item-...] is parsed before
the enclosing perl block.

Bye
	Racke

--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.