Hello all,
I am trying to develop a custom module for an automated email that takes the content of a ticket property (a string: "Sentence 1,Sentence 2, Sentence 3,etc.), splits it by commas, loops over the array and then renders each item into a bullet point.
This is the current code, which is not doing what I need it to do.
The email is coming through with the original comma separated string, which shows me that the property is being caught by the code, but the looping and rendering code is not working:
```
<!doctype html>
<html>
<head>
</head>
<body>
<div>
{% set voids_raw = ticket.anomaly_report_voids %}
{#{% set voids_raw = “sentence 1,sentence 2,sentence 3” %}#}
{% set voids_list = voids_raw | split(‘,’) %}
{% if voids_list | length > 0 %}
{% for void in voids_list %}
<ul>
<li>{{void}}</li>
</ul>
{% endfor %}
{% else %}
<p>No voids to display</p>
{% endif %}
</div>
</body>
</html>
```
Also adding a screenshot of the module configurations:
Thank you for your help!
