AnsweredAssumed Answered

strict patterncount

Question asked by calbers on Jun 25, 2018
Latest reply on Jun 26, 2018 by philmodjunk

I am trying to do a patterncount for weighted sorting. My current method is:

 

set variable[$score; value: $score + patterncount(lineItems::Description ; "van") * 10]

 

The problem is, when I encounter a line item with "vanity" or "vanessa" or "vanguard" it still adds points.

 

I tried something like using a combination of "van " " van" and " van " (I know, kinda silly) but that obviously doesn't do much.

 

I know how to do a strict search, but is there any way to do a stricter pattern count?

Outcomes