Can I do multiple If validations on expression for dynamic classes

0
In the expression shown in the image I can do the first “if” but the second appears as invalid (in red).    Is there a way to make multiple "if" independents in the same expression for dynamic classes?   Thank you very much in advance!
asked
1 answers
1

You just need to use “else if” like:

 

if $currentObject/attr1 then 'tab1-checked'
else if $currentObject/attr2 then 'tab2-checked'
else 'tab-pending'

 

answered