title: Multiple conditionals with ng-show AngularJS
body: <p>I have a ng-repeat that builds a table from a web service. I render 6 values like this: <code>med:1 lab:1 pl:1</code> in one cell. I need to make a decision based on those 6 values. My <code>ng-repeat</code> code is like this:</p>
  
  <pre><code>&lt;tr ng-repeat="(pid, value) in patient|groupBy:'pid'"&gt;
      &lt;td&gt;{{pid}}&lt;/td&gt;
      &lt;td ng-repeat="(disease, value) in patient|groupBy:'name'"&gt;
          &lt;span ng-repeat="item in value|filterBy:['pid']:pid" ng-model="disease-conditial"&gt;
          {{item.src}}:{{item.total}}
          &lt;/span&gt;
          &lt;!--This is the code that I'm trying to make to work--&gt;
          &lt;span class="label label-danger" ng-show="
                (item.src == 'med' and item.total &gt; 0) and
                (item.src == 'lab' and item.total &gt; 0 and
                (item.src == 'pl' and item.total &gt; 0))"&gt;Yes
          &lt;/span&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Please consider this sudo code. I need three conditions:
    <code>if src == med &amp;&amp; total &gt; 0</code>
     <strong>and</strong>
    <code>if src == lab &amp;&amp; total &gt; 0</code>
     <strong>and</strong>
    <code>if src == pl &amp;&amp; total &gt; 0</code>
       then <strong>Yes</strong>
    <code>if src == med &amp;&amp; total == 0</code>
    <code>if src == lab &amp;&amp; total &gt; 0</code>
    <code>if src == pl &amp;&amp; total &gt; 0</code>
        then <strong>Maybe</strong>
    <code>if src == med &amp;&amp; total == 0</code>
    <code>if src == lab &amp;&amp; total == 0</code>
    <code>if src == pl &amp;&amp; total == 0</code>
        then <strong>No</strong></p>
  
  <p>I was reading about ng-switch but this directive doesn't support conditionals with dynamic data <code>$scope.something == 1</code>
  Does Angular has any built in directive where I can achieve this?</p>
  
  <p>The data in the cell looks like this:</p>
  
  <pre><code>+-----------------+
  |med:1 lab:1 pl:1 |
  +-----------------+
  </code></pre>
  
  <p>I need to evaluate the value of med &amp;&amp; the value of lab &amp;&amp; the value of pl to make the decision of Yes, Maybe, No.</p>
  
  <h2>Update 7 SEP 2016</h2>
  
  <p>The data that comes from the object is as follow:</p>
  
  <pre><code>Array[50]
  0:Object
    $$hashKey:"object:18"
      name:"Alcoholism"
      pid:"1"
      src:"lab"
      total:"1"
      __proto__:Object
  1:Object
    $$hashKey:"object:19"
    name:"Alcoholism"
    pid:"1"
    src:"med"
    total:"1"
    __proto__:Object
  2:Object
    $$hashKey:"object:20"
    name:"Alcoholism"
    pid:"1"
    src:"pl"
    total:"0"
    __proto__:Object
  </code></pre>
  
  <p>Once again, scenario 1. <code>if med &gt; 0 &amp;&amp; lab &gt;0 &amp;&amp; pl &gt;0 then Yes</code>. Scenario 2. <code>if med == 0 &amp;&amp; lab &gt; 0 &amp;&amp; pl &gt; 0 then Maybe</code>. Scenario 3. <code>if med == 0 &amp;&amp; lab == 0 &amp;&amp; pl == 0 then No</code>.</p>