title: Condition as a Variable in SQL
body: <p>I am looking to pass a variable as a condition '&lt;,>,+,=' in SQL but not sure the right way and cant find anything online to help me.</p>
  
  <p>Basically, I have information where I need to see a buy and sell side on an invoice and don't want two separate procedures for it.</p>
  
  <p>Example would be: </p>
  
  <pre><code>SELECT * FROM Details
  WHERE Credit @Direction 0
  </code></pre>
  
  <p>@Direction could be &lt;,> or =</p>