Hello! Working on a site which has an API from a ticket system populate the Webflow CMS with events.
One of the things it populates the CMS with is “salesStatus” which is either “0”, “1” or “2”.
I want to display this in a collection list over events users can buy tickets to, but I want it to be “translated” to text in a paragraph given the class "event-status.
The different states are as follows:
1 = Tickets available
2 = Sold out
3 = Few tickets remaining
I tried this but cant seem to get it working. Any ideas?