Hi Jannes,
Adding on Pjotr’s response, you have to create an enum for game outcome but if you don't want to use the widget then you can add a container for each enum value and conditional visibility on each container.
E.g. If the game outcome enum has got three values (Won, Lost, Draw) then add three containers and conditional visibility ;
Container 1 = Add visibility and styles (only visible if game outcome enum value = Won. Add green class in your stylesheet and use that class name on the label or use ‘text-success’ helper class. You can also add inline style color:green; )
Container 2 = Add visibility and styles (only visible if game outcome enum value = Lost. Add red class in your stylesheet and use that class name on the label or use ‘text-danger’ helper class. You can also add inline style color:red; )
Container 3 = Add visibility and styles (only visible if game outcome enum value = Draw. Add blue class in your stylesheet and use that class name on the label or use ‘text-primary’ helper class if you have not changed the default brand-primary label. You can also add inline style color:blue; )
Hope this helps!
You can try using the enumclass widget:
https://appstore.home.mendix.com/link/app/2641/
How to implement: