<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Yes, exactly. I as the author of the not-contained filter confirm that you need all 3 alternatives in your rule. The expression you were missing ('$(route_ref1)') matches if route_ref1 is already present on the way but the relation being currently processed has ref already found and proccessed before. If '$(route_ref1)' is missing in such a situation, the rule would mean actually: set route_ref1 = '${ref}'.</div>
<div>So with your sequence 362, 363, 3, 3 that would imply that after processing the first three numbers, your route_ref1 looks like '362, 363, 3'. But when '3' is being found for the second time, route_ref1 is reassigned to just 3.</div>
<div> </div>
<div>If the rule is complete (with all 3 alternatives), then while processing the last '3', the rule is reduced to: set route_ref1 = '$(route_ref1)', so it remains as it was before and could be processed further.</div>
<div> </div>
<div>Just a little bit explanation, why it works this way ;-)</div>
<div> </div>
<div>Max</div>
<div>
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Donnerstag, 14. Dezember 2017 um 20:25 Uhr<br/>
<b>Von:</b> "demon.box" <e.rossini73@alice.it><br/>
<b>An:</b> mkgmap-dev@lists.mkgmap.org.uk<br/>
<b>Betreff:</b> Re: [mkgmap-dev] expression not-contained</div>
<div>Hi Gerd, finally I understand!<br/>
<br/>
The problem it's not the blank but my code:<br/>
<br/>
This don't work:<br/>
set route_ref1='$(route_ref1), ${ref|not-contained:, :route_ref1}' |<br/>
'${ref}';<br/>
<br/>
This work perfectly (also with blank):<br/>
set route_ref1='$(route_ref1), ${ref|not-contained:, :route_ref1}' |<br/>
'$(route_ref1)' | '${ref}';<br/>
<br/>
Thanks very, very, very much ;-)<br/>
<br/>
--enrico<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
--<br/>
Sent from: <a href="http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html" target="_blank">http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html</a><br/>
_______________________________________________<br/>
mkgmap-dev mailing list<br/>
mkgmap-dev@lists.mkgmap.org.uk<br/>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>
</div>
</div></div></body></html>