<p>I have attributes that include dashes in their names, which I don't have any issue while using them along with <code>index</code> i.e:</p>
<pre><code>{{ toYaml index .Values.myService &quot;my-service-config&quot; | b64enc }}
</code></pre>
<p>However, if I want to use an <code>if or</code> for multiple evaluations, I cannot successfully use index for them, i.e:</p>
<pre><code>{{- if or index .Values.serviceA.appyml .Values.serviceB.log4j2xml .Values.serviceC &quot;some-service-configyml&quot; .Values.serviceC &quot;another-serviceyml&quot; }}
</code></pre>
<p>I receive the error message:</p>
<pre><code>at &lt;index&gt;: wrong number of args for index: want at least 1 got 0
</code></pre>

Jesus Vidal
<p>I had to use <code>index</code> for each attribute name having dashes within parentheses:</p>
<pre><code>{{- if or .Values.serviceA.appyml .Values.serviceB.log4j2xml ( index .Values.serviceC &quot;some-service-configyml&quot;) ( index .Values.serviceD &quot;another-serviceyml&quot;) }}
</code></pre>
