sharepoint online – How can I add conditional column formatting for Boolean expression in JSON?

I have a SharePoint Online list with a number of reference columns: they need to be included in the view so that I can reference them in the JSON conditions in other columns, but the users don’t usually need to see the values.

To keep them out of the way, I’ve formatted them so that, if they aren’t null, they show “Hover to View” and then display the contents if the user hovers:

enter image description here

If they are null, then the text doesn’t appear, and the hover box doesn’t pop up, even if the user happens to have their mouse over the field. All of that is working correctly, but I can’t seem to get rid of the hover “beak” in the same way, so even if the field doesn’t display the hover box, it still shows the beak when the user has their mouse on the field:

enter image description here

The logic in the conditional formatting for the beak should be the same as for the hover box (if the box should appear, so should the beak; if the box shouldn’t appear, the beak shouldn’t either). This is the problem statement in the JSON:

"isBeakVisible": "=if(indexOf(@currentField,'No notifications') !=-1,false,if(indexOf(@currentField, 'Skip') !=-1, false,true))"

I know the conditional logic is correct because it works as expected to show or hide the text in the field (as well as the hover content):

"display": "=if(indexOf(@currentField,'No notifications') !=-1,'none',if(indexOf(@currentField, 'Skip') !=-1, 'none','inline-block'))"

SharePoint indicates a problem with the code for isBeakVisible because it expects a Boolean value:

enter image description here

As far as I can tell, false or true are the values I should be using (without quotation marks – I’ve tried with and it doesn’t solve the problem). If I change the statement to remove the condition it works correctly (you can see that the field is highlighted because my mouse is over it, but the beak doesn’t show):

enter image description here

This works (with either false or true) as long as I don’t have the condition:

 "isBeakVisible": false,

So:

  1. True or false work to show or hide the beak when used outside of a condition
  2. The logic of the condition works to show or hide the hover content and field text
  3. When the condition for isBeakVisible outputs true or false it doesn’t work because it isn’t understood as a boolean value

How can I make the output of my condition a boolean value so that the formatting works as expected?