title: jquery check all hidden elements for similarity of values and return boolean
body: <p>How can I check a group of hidden fields for their values and if there are dissimilarities in their values, I will return false. But empty values and "False" should be treated as equal.  There are 3 possible values only, empty, True and False but I want to treat empty as False.</p>
  
  <p>I want something like</p>
  
  <pre><code>var isTrue = true;
  
  // is there a way to do this in jquery or similar to this?
  var values = $("#group input:hidden").distinct().take(2);  
  if(values.length == 2) {
      // only make it false if there is a true in the values.
      if(values[0] == 'True' || values[1] == 'True') {
          isTrue = false;
      }
  }
  </code></pre>
  
  <p>output should be like</p>
  
  <pre><code>{values[0] = '', values[1] = 'False'} = true
  {values[0] = 'True', values[1] = 'False'} = false
  {values[0] = '', values[1] = 'True'} = false
  </code></pre>
  
  <p>Index in the index can be interchanged.</p>