title: AppleScript X is contained in list of terms
body: <p>I thought that simply using the "<strong>or</strong>" operator would allow me to check whether or not a variable, "theMessage" contains "x" or "y". Apparently not.</p>
  
  <p>I tried this:</p>
  
  <pre><code>else if theMessage contains {"display", "screen"} then
   --sleep computer's display
    do shell script "pm displaysleepnow"
    set theResponse to "Now sleeping the computer's display"
  </code></pre>
  
  <p>I'll be possibly writing a lot of these, so it'd be great if I could get a subroutine going for <em>term</em> in <em>terms</em> with operators... e.g.</p>
  
  <pre><code>if theMessage contains {....} not {....}
  </code></pre>