Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
  type: 1,
  logicalOperator: 'OR',
  subFilters: [
    { 'fieldName': 'Name', 'operator': '=', 'value': 'Awesome'},
    { 'fieldName': 'Name', 'operator': '=', 'value': 'Nice'}    
  ]
}

The groupings can be nested inside the subFilters property, allowing for more complex logic. This example shows A OR (B AND C):

Code Block
{
    type: 1,
    logicalOperator: 'OR',
    subFilters: [
        { 'fieldName': 'Name', 'operator': '=', 'value': 'A'},
        {
            type: 1,
            logicalOperator: 'AND',
            subFilters: [
                { 'fieldName': 'Name', 'operator': '=', 'value': 'B'},
                { 'fieldName': 'Name', 'operator': '=', 'value': 'C'}      
            ]
        }
    ]
}

The following properties are required

...