Multiple conditions on Class toggle string

Hi,

How can I add multiple strings as conditions for a class toggle.

For example:

dmx-class:badge-danger="(status == (“No show”) || “Cancelled”)"

This script is not working, it is applying the badge-danger to all the values, however if I have only one condition it works.

I want to show the badge-danger class only when the status field text is “No show” or “Cancelled”

I think you’ll want to use:

dmx-class:badge-danger="status == 'No show' || status == 'Cancelled"
2 Likes

Done thank you