abdfahim
Well-known member
Is it okay to use a long "xen:elseif" chain in a template like below?
Code:
class = {xen:if '{$user.customFields.my_id1} == "A"', 'class1', {xen:if '{$user.customFields.my_id2} == "A"', 'class2', {xen:if '{$user.customFields.my_id3} == "A"', 'class3', {xen:if '{$user.customFields.my_id4} == "A"', 'class4'}}}}