title: If Variable is Blank Then No Where Clause
body: <p>I am trying to do what the below pseuedo code infers:</p>
  
  <pre><code>WHERE 
  CASE 
  WHEN @test &lt;&gt; '' THEN Agent = @test
  ELSE --no where clause 
  END
  </code></pre>
  
  <p>What is the correct structure for this?</p>