<div class="gmail_quote">On Fri, Jul 9, 2010 at 5:51 AM, John Smith <span dir="ltr"><<a href="mailto:deltafoxtrot256@gmail.com">deltafoxtrot256@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 9 July 2010 13:56, Alan Mintz <<a href="mailto:Alan_Mintz%2BOSM@earthlink.net">Alan_Mintz+OSM@earthlink.net</a>> wrote:<br>
> Are they ORd or ANDed? Is there a way to have a partial wildcard on the<br>
<br>
</div>As far as I'm aware you can only do simply ORs, eg:<br>
<br>
[highway=residential|unclassified]<br>
<br>
And you can't do add more than one key value.<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div>Yes you can. {foo=*][bar=*] is the subset of elements that have both foo and bar tags.<br><br>So, [foo=a|b][bar=c|d] means in SQLspeak:<br>WHERE (foo=a OR foo=b) AND (bar=c OR bar=d)<br>
More formally:<br><i>x</i> ∈ (foo=a ∪ foo = b) ∩ (bar =c ∪ bar=d)<br><br>80n<br><br><br></div></div><br>