
Hi, I have the following lines in my relations file: type=route & (route~'.*foot.*' | route~'.*hiking.*') & network~'.*[nr]wn.*' & name~".*\(.*\)" { set name='${name|subst:"\(.*\)~>"}'} type=route & (route~'.*foot.*' | route~'.*hiking.*') & network~'.*[nr]wn.*' & name=* { apply_once { set hikingroute=yes; set rn='$(rn) & ${name}' | '${name}'; } } This is working, but if for example the way has two hiking relations with names "Shropshire Way (Route 1)" and "Shropshire Way (Route 2)", the first rule changes the names of both relations to "Shropshire Way", and the second rule sets the rn tag of the way to "Shropshire Way & Shropshire Way". I would like to check whether the rn tag on the way already contains the name of the relation (or is equal to if contains can't be done), so that I end up with rn as "Shropshire Way". Can anyone tell me how this can be achieved? Thanks, Mike