title: Using if statement on data-bind text
body: <p>I can not quite figure out how to put an if statement inside a <code>text</code> binding.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;tbody data-bind="foreach: model.poCollection"&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;input type="checkbox"&gt;
          &lt;/td&gt;
          &lt;td data-bind="text: RlseNbr"&gt;&lt;/td&gt;
          &lt;td data-bind="text: Clin"&gt;&lt;/td&gt;
          &lt;td data-bind="text: PrchOrdNbr"&gt;&lt;/td&gt;
          &lt;td data-bind="text: RqstnCntrlNbr"&gt;&lt;/td&gt;
          &lt;td data-bind="text: {(DtCntrctDlvry == '0') ? 'a' :'b'}"&gt;&lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>Not sure what I am doing wrong the moment I attempt to put the if statement in it the data is no longer displayed.</p>