Lava Error: Invalid 'if' tag at (110:166)
Source:
<div class="d-flex justify-content-end flex-column p-2 text-white text-center align-items-center" style="margin:0 auto; background-image:url{% if row.StaffPhoto && row.StaffPhoto != '' %}('/GetImage.ashx?Guid={{ row.StaffPhoto }}'){% else %}('/Assets/Images/person-no-photo-{% if row.Gender == 1 %}male{% elseif row.Gender == 2 %}female{% else %}unknown{% endif %}.svg'){% endif %}; width:300px;height:300px;background-size:cover;background-repeat:no-repeat">