I'm fairly new to SharePoint JSON. I have a simple JSON to change the value of a column based on the value of another column:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "div",
"txtContent": "=if([$Persona] == 'Developer', 'A Developer is any person who has a responsibility to write code for application building, continuous delivery, automated testing, data analytics or vulnerability reviews.', 'N/A')"
}
Even though an item in the list has Developer as the value of the Persona column, the alternate text (N/A) is always displayed.
What am I doing wrong here? Also, is it possible to do an if else in SP JSON?