我的 Conditional0 JSON 语句没有按预期工作

My Conditional0 JSON statement is not working as expected

我正在查询两个字段。

  1. [$WF_x0020_Status]
  2. [$WorkflowRequired]

只有当 WF Status = 'Not Started' 或者 WorkFlowRequired 字段未设置或不等于 'None' 时,按钮才会显示。我的代码没有按预期工作。我做错了什么?

这是我的 JSON

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "button",
  "txtContent": "Launch flow",
  "customRowAction": {
    "action": "executeFlow",
    "actionParams": "{\"id\": \"b9ac6fa1-f0ee-4299-a5e1-cc84ec667b80\"}"
  },
  "style": {
    "background-color": "#3366ff",
    "color": "white",
    "visibility": "=if([$WF_x0020_Status] == 'Not Started' && [$WorkflowRequired]<>'None'),'visible','hidden')"
  }
}

你可以试试下面的方法:

"visibility": "=if(([$WF_x0020_Status] == 'Not Started'  && [$WorkflowRequired]!='None' ),'visible','hidden')"