<div class="markdown">
<p dir="auto">On 25 Mar 2014, at 18:23, Kee Hinckley wrote:</p>
<blockquote>
<p dir="auto">Is there a way in the selection syntax to have an <code>'or'</code>? I'd like to have multiple or'd options after the <code>'and'</code>, or at least be able have <code>'from.domain'</code> match one or more other domain names (e.g. <code>'from.domain IN'</code>).</p>
<pre><code class="c">select = "content-type.type = text and content-type.subtype = html and from.domain = 'tivo.com'"; // or #flags.flag =[x] 'HTMLReply'";
</code></pre>
</blockquote>
<p dir="auto">You can use and/or as you would probably expect (using parenthesis):</p>
<pre><code>(x = 'a' and x = 'b') or (y = 'c' and y = 'd')
</code></pre>
<p dir="auto">There is no “in” operator for a fixed set of values.</p>
<p dir="auto">The only way to discover this syntax is to create the desired expression using a smart mailbox and then look at the result in the <code>Mailboxes.plist</code> file. Note that holding down ⌥ in the conditions editor allows you to make the or/and (any/all) constructions.</p>
<p dir="auto">-- <br>
Benny</p>
</div>