I'm trying to do the following inside a datacard in a gallery. I also attempted to add an Icon with conditional display but can't get the icon control inside the datacard.
What I want to do is display ThumbsUp or ThumbsDown depending on the underlying yes/no in the SP list. I thought this would be easy but I cannot for the life of me figure out the syntax.
Here are the things I've tried already within one big code block. The top works and displays "true" or "false".
ThisItem.Completed
//If(ThisItem.Completed, ":thumbsup:", "Nope")
//If(ThisItem.Completed, Icon.ThumbsUpFilled, "Nope")
/*If(
ThisItem.Completed,
Icon.ThumbsUp,
Icon.ThumbsDown
)*/
The three commented attempts above all result in the correct evaluation but show the text within the logic and not the Icon itself.