title: knockout js if statement to Display value based on boolean data type
body: <p>I am trying to Display a value based on a table value of True or False. For example if the Value is True then I want it to Say Supported and If it's False then I want it to Say Not Supported! This is my html code </p>
  
  <pre><code>&lt;p&gt;&lt;input type="text"  data-bind="value: Support"  /&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Java script Code</p>
  
  <pre><code>$(function() {
    dm.viewModel = function() {
      var clients = ko.observableArray(),
        selectedClient = ko.observable(),
  
        clientChanged = function() {
          $.getJSON(dm.WebServices + "/dm/get/clientinfo?client=" + encodeURIComponent(selectedClient()), function(data) {
            if (data != null) {
              dm.viewModel.Name(selectedClient());
              dm.viewModel.Support(data[0]['Support']);
            }
          })
          $('#divClientData').show();
        },
  
        LoadClients = function() {
          $('#divClientData').hide();
          $.getJSON(dm.WebServices + "/dm/get/clientlist", function(data) {
            $.each(data, function(key, val) {
              clients.push(val);
            });
          });
        },
  
        Name = ko.observable(),
        Support = ko.observable(),
  
        return {
          Name: Name,
          Support: Support
        };
    }();
  
    ko.applyBindings(dm.viewModel);
    dm.viewModel.LoadClients();
  })
  </code></pre>