I would like to compare a string object but cant seem to because the only way it outputs data is when it has {% raw %}
tags.
This example outputs {{ myBatch.my_CountryOfOrigin }}
:
{% raw %}<p class="info-part" v-if="isBatches" v-for="(myBatch, l) in myyy.batches" :data-batch="'batch-' + l">
Country of Origin: {{ myBatch.my_CountryOfOrigin }}
</p>{% endraw %}
However when I remove {% raw %}
tags then {{ myBatch.my_CountryOfOrigin }}
is blank.
I need to compare a string value
{% assign myc = myBatch.my_CountryOfOrigin | strip | upcase %}
{% if myc == "ABCD" %}
...
Can anyone lend a hand please.