title: Conditional binding: apply binding only if some criteria met
body: <p>Is there a way to apply one binding in knockout if some criteria are met and do not apply this binding if those critera are not met?</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div data-bind="custombinding: $data.values"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I need to apply this binding if <code>$data.canEdit</code> is true, otherwise I do not need to apply this binding.</p>
  
  <p>The exact example is more complicated.</p>