Class depending of looper output

Is there a way to add a class to an element depending of the output of a looper?

Hello @mcostales84,

Thanks for writing to us.

You need to add multiple elements, one element with the custom class, and then you need to add the condition on both elements by comparing the looper output value and show/hide the element based on the looper output. In case you have no idea about how to set the condition please have a look at our doc.

Hope it helps
Thanks

I know how to do that, but in this case the conditions will be more than one, that’s why I though it may be a better way. This is my last resource, I wanted to confirm this is the only way to do it.

Hi @mcostales84,

Using multiple elements for different conditions is the only way for this.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.