[ic] Manipulating op=rm

Daniel Davenport DDavenport at newagedigital.com
Fri Jun 8 14:56:53 EDT 2007

> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org 
> [mailto:interchange-users-bounces at icdevgroup.org] On Behalf Of Grant
> Sent: 2007 May 31 -- Thursday 1:42 PM
> To: interchange-users at icdevgroup.org
> Subject: [ic] Manipulating op=rm
> I have term1 and term2 space-separated in field 'terms' for every item
> in the products table.  When I want to know if a particular item's
> term1 or term2 matches the term1 or term2 of another product, I do
> this:
> [loop list="[data table='products' field='terms' key='mykey']"]
>    [loop prefix="inside"
> search="fi=products/sf=terms/se=[loop-code]/op=rm/nu=0"]
> *stuff goes here*
>    [/loop]
> [/loop]
> Is there a way to manipulate the behavior of op=rm so it will evaluate
> true if EITHER term1 or term2 match instead of BOTH term1 and term2?
> That way I wouldn't need the list loop.
> I don't think I can use op=tq or op=aq for this, because I also need a
> corresponding negative match, ala op=rn.
> - Grant

If i remember right, with op=r[mn], the search spec is interpreted as a
regular expression.

Try se=term[12], if those are actually the names of your terms...if
they're not, then you'll want something like se=thisterm|thatterm.

Daniel Davenport
New Age Digital

More information about the interchange-users mailing list