<p>The solution is:</p>

<pre><code>{% if "itching" in submission.symptomCheckerSymptoms.value %}
{% endif %}
</code></pre>

CC BY-SA 3.0
2017-11-09T16:53:51.347Z
2017-11-09T16:53:51.347Z
Mark H.
<p>This code works as expected...</p>

<pre><code>{% if submission.symptomCheckerSymptoms == "Itching" %}
    it works
{% endif %}
</code></pre>

<p>... but when when multiple options are selected, it doesn't.</p>

<p>The field is a checkbox group. What am I doing wrong?</p>

<plugin-freeform><checkboxes>
Freeform conditionals
# Freeform conditionals

(Asked by: username_0 on 2017-11-08)

This code works as expected...
{% if submission.symptomCheckerSymptoms == "Itching" %}
    it works
{% endif %}

... but when when multiple options are selected, it doesn't.
The field is a checkbox group. What am I doing wrong?

**Tags:** plugin-freeform, checkboxes

---

## 1 answers

### Answer by username_0 on 2017-11-09. Score: 1

The solution is:
{% if "itching" in submission.symptomCheckerSymptoms.value %}
{% endif %}


---

