[ic] Manipulating op=rm
emailgrant at gmail.com
Sat Jun 9 12:00:46 EDT 2007
> > 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, if those are actually the names of your terms...if
> they're not, then you'll want something like se=thisterm|thatterm.
Thanks Daniel, I'll give that a try.
More information about the interchange-users