Re: [greenstone-devel] {If} in format statements

From John R. McPherson
DateFri, 09 May 2003 17:13:12 +1200
Subject Re: [greenstone-devel] {If} in format statements
In-Reply-To (OF001BDC78-278308A7-ON69256D21-0019D723-69256D21-0019D744-ntu-edu-au) wrote:

> format DocumentText "<center><table width=537><tr><td align=left><br/>{If}
> </td></tr></table></center>"
> I am trying to do a comparison but for some reason cannot get it to return
> anything but IP RIGHTS STATEMENT 'A' Is someone able to provide some advice
> on using the {If} statement with 'eq', 'ne' and other operators on metadata
> fields? (My [rights] metadata for each record is either A or B)

That looks like it should work... perhaps you need quotes around the
term(s) in the eq test? Otherwise it might be trying to do integer
comparison rather than string comparison.

> Another situation is to have both A and B in my [rights] metadata field;
> Has anyone solved this problem?

Don't know about this situation, sorry. Maybe someone else can
help with multiple values.