title: Pure Data help. How to use conditional logic in Pd
body: <p>I've confused my myself a lot and need your help.
  I'm trying to make a little function in Pure Data which says when the <code>toggle</code> is on it sends a <code>1</code> but when it isn't on it allows the computed value through.</p>
  
  <p>So the program works a value <code>1</code> or <code>2</code> and when the <code>toggle</code> isn't on the computed value goes through, but when the <code>togggle</code> is on it sends <code>1</code> through.</p>
  
  <p>I would show my code but its Pd so I can't copy and paste it. My attempt so far is making use of <code>spigots</code> but that isn't working its still sending <code>1</code> through no matter what the <code>toggle</code> is doing, and I know for a fact the computed value changes.</p>
  
  <p>In normal code I would do something like:</p>
  
  <pre><code>value = computedVal
  
  if (toggle == 1) then return 1;
  
  else return value;
  </code></pre>