I have a multi-select property which lists colors as the options. I am trying to create a formula property to display a colored emoji if the multi-select option is chosen. I've got the formula working well if only one option is chosen, but when more than one option is selected, no luck. I believe it's looking for an exact match, so I have changed the formula from == to a contains formula. However, it's telling me that I have too few arguments, and I can't for the life of me figure out what's missing.
Here is the formula that IS working when only one option is selected:
if(prop("Color") == "White", "⚪", if(prop("Color") == "Red", "", if(prop("Color") == "Green", "", if(prop("Color") == "Blue", "", if(prop("Color") == "Purple", "", if(prop("Color") == "Black", "⚫", ""))))))
Here is the formula that has too few arguments where I'm trying to make this work with multi-select:
if(contains(prop("Color"),"White"), "⚪", if(contains(prop("Color"),"Red"), "", if(contains(prop("Color"),"Green", "", if(contains(prop("Color"),"Blue", "", if(contains(prop("Color"),"Purple", "", if(contains(prop("Color"),"Black", "⚫", ""))))))))))
What am I missing? Thanks so much!
Edit: The code in this post isn't showing up properly because of the emojis, please see this screenshot for an accurate view of the formulas: