title: Windows Batch : query wmic computersystem get model if equals true continue with windows batch
body: <p>Looking to write a script that will query wmic computersystem get model and if the value is true continue with batch file if not true echo Un-compatible system exiting, this is what i have so far</p>
  
  <pre><code>    @echo off
  
          for /F "skip=1" %%? in ('wmic computersystem get model') do "(
  
        if %%?' equ Test' ('goto start') else (
  
        if %%?' equ test1' ('goto start') else (
  
        if %%?' equ test2' ('goto start') else (
  
        if %%?' equ test3' ('goto start') else (
  
        echo un-compatible System Exiting...&gt;nul)))))"
  
  :start
  
  start of script
  </code></pre>
  
  <p>im generally ok with scripting but never used if statements so kinda lost on this one.</p>
  
  <p>Any help will be very welcomed.</p>