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

Re: [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.

Thanks Daniel, I'll give that a try.

- Grant
_______________________________________________
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.