<p>I'd like to use some code like below to describe a comma is the substring of the string.</p>

<pre><code>{{- if contains '\,' .alias }}
</code></pre>

<p>But it reports the error in the line when using <code>helm lint</code></p>

<pre><code> invalid syntax
</code></pre>

<p>How to write it correctly?</p>

<p>Thanks to community user <a href="https://stackoverflow.com/questions/57926732/how-to-check-if-the-comma-exist-in-helm-charts#">Bimal</a>.</p>

<p>It can be applied like:</p>

<pre><code>{{- if contains "," .Values.xxx.name }}
  some_data: {{ .Values.xxx.name }}
{{- end }}
</code></pre>

<p>For further reference please follow <a href="http://masterminds.github.io/sprig/strings.html" rel="nofollow noreferrer">String Functions</a>: </p>
