title: Helm template not rendering correct condition
body: <p>I have to 2 different values in my helm chart and a combination of them decided whether a file is generated or not. The 2 values are</p>
  <pre><code>cluster: test
  networkpolicy: true
  </code></pre>
  <p>I need to generate a NetworkPolicy based on 4 different cases.</p>
  <pre><code>Case          |  1   |   2   |  3   |  4 
  --------------------------------------------
  cluster       | test | test  | prod | prod
  networkpolicy | true | false | true | false
  --------------------------------------------
  Outcome       | true | false | true | fail
  </code></pre>
  <p>The above table shows the out come I want. Here is my code in <code>_helpers.tpl</code> file</p>
  <pre><code>{{- define &quot;jenkins.networkpolicy&quot; -}}
  {{- if eq .Values.cluster &quot;prod&quot; -}}
    {{- if .Values.networkpolicy -}}
      {{- &quot;true&quot; -}}
    {{- else -}}
      {{- fail &quot;Network policy cannot be disabled in prod&quot; -}}
    {{- end -}}
  {{- else -}}
    {{- if .Values.networkpolicy -}}
      {{- &quot;true&quot; -}}
    {{- else -}}
      {{- &quot;false&quot; -}}
    {{- end -}}
  {{- end -}}
  
  {{- end -}}
  
  </code></pre>
  <p>and im calling it in my <code>networkpolicy.yaml</code> file like this</p>
  <pre><code>{{- if (include &quot;jenkins.networkpolicy&quot; .) }}
  apiVersion: networking.k8s.io/v1
  kind: NetworkPolicy
  .
  .
  {{- end }}
  
  </code></pre>
  <p>The above code works fine for 3 out of 4 cases. Case #2 does not work. It should not be templating/ignoring the file but it still generates it. Any idea what I am missing here ?</p>
  <pre><code>✗ helm template . -f ./values.yaml --set environment.id=test --set cluster=test --set networkpolicy=false | head -10
  ---
  # Source: jkmaster-networkpolicy.yaml
  apiVersion: networking.k8s.io/v1
  kind: NetworkPolicy
  metadata:
    name: test-jkmaster-networkpolicy
  spec:
    podSelector:
      matchLabels:
        app: test-jkmaster # label of pod to isolate
  </code></pre>