title: Batch - check if variable matches any item in a list
body: <p>I've got a simple script that grabs a PC's manufacturer and sets a variable:</p>
  
  <pre><code>for /f "usebackq tokens=2 delims==" %%A IN (`wmic csproduct get vendor /value`) DO SET VENDOR=%%A
  </code></pre>
  
  <p>What I need to do next is to check if my new <code>VENDOR</code> variable matches anything in a list:</p>
  
  <pre><code>Acer
  Gateway 
  Packard 
  Alienware
  ASUS
  Dell Inc.
  Fujitsu
  HP
  Compaq
  Lenovo
  IBM
  Samsung
  Sony
  Toshiba
  </code></pre>
  
  <p>and then <code>DO COMMAND1</code> if found, and <code>DOCOMMANDB</code> if not found.</p>
  
  <p>I think that piping the variable into <code>findstr</code> might work, but I only know <code>findstr</code> usage when you're feeding it a text file. I'm really bad at regex so I would need some guidance on that if it's the best option.</p>
  
  <p>How can I accomplish the above?</p>