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
Leandro Dias
1 answers
2
You just need to use “else if” like:
if $currentObject/attr1 then 'tab1-checked'
else if $currentObject/attr2 then 'tab2-checked'
else 'tab-pending'