I tried the following for this specific snippet (changes shown in red):
<div class="item {% for category in (row.filter_item or row.molecule_class) %}{{ category.name|lower|replace('|', '_')|replace('.', '')|replace('/', '_')|replace(' ', '_') }} {% endfor %}">
because I wanted to combine the two columns and pull data from both columns.. but it doesn't seem to be working for me for some reason. Am I doing anything wrong? Is this the correct way to combine columns?