================================================================================
FILTER expressions with equals prefix for field filters
================================================================================

table 123 "Test Table"
{
    fields
    {
        field(1; "Status Filter"; Integer)
        {
            CalcFormula = Count("Record Table" WHERE(Status = FILTER(= Approved)));
            FieldClass = FlowField;
        }
        field(2; "Type Filter"; Integer)
        {
            CalcFormula = Count("Document" WHERE(Type = FILTER(= Invoice)));
            FieldClass = FlowField;
        }
        field(3; "Boolean Filter"; Integer)
        {
            CalcFormula = Count("Entry" WHERE(Status = FILTER(= true)));
            FieldClass = FlowField;
        }
        field(4; "Integer Filter"; Integer)
        {
            CalcFormula = Count("Entry" WHERE(Status = FILTER(= 5)));
            FieldClass = FlowField;
        }
        field(5; "String Value"; Integer)
        {
            CalcFormula = Count("Text Entry" WHERE(Status = FILTER(= "Active")));
            FieldClass = FlowField;
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (table_declaration
    (table_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (fields_section
      (fields_keyword)
      (field_declaration
        id: (integer)
        name: (quoted_identifier)
        type: (type_specification
          (basic_type))
        (property
          name: (property_name)
          value: (aggregate_formula
            function: (aggregate_function)
            target: (calc_field_reference
              (quoted_identifier))
            (where_clause
              (where_conditions
                (where_condition
                  field: (identifier)
                  (filter_keyword)
                  value: (filter_value
                    (identifier)))))))
        (property
          name: (property_name)
          value: (identifier)))
      (field_declaration
        id: (integer)
        name: (quoted_identifier)
        type: (type_specification
          (basic_type))
        (property
          name: (property_name)
          value: (aggregate_formula
            function: (aggregate_function)
            target: (calc_field_reference
              (quoted_identifier))
            (where_clause
              (where_conditions
                (where_condition
                  field: (identifier)
                  (filter_keyword)
                  value: (filter_value
                    (identifier)))))))
        (property
          name: (property_name)
          value: (identifier)))
      (field_declaration
        id: (integer)
        name: (quoted_identifier)
        type: (type_specification
          (basic_type))
        (property
          name: (property_name)
          value: (aggregate_formula
            function: (aggregate_function)
            target: (calc_field_reference
              (quoted_identifier))
            (where_clause
              (where_conditions
                (where_condition
                  field: (identifier)
                  (filter_keyword)
                  value: (filter_value
                    (boolean)))))))
        (property
          name: (property_name)
          value: (identifier)))
      (field_declaration
        id: (integer)
        name: (quoted_identifier)
        type: (type_specification
          (basic_type))
        (property
          name: (property_name)
          value: (aggregate_formula
            function: (aggregate_function)
            target: (calc_field_reference
              (quoted_identifier))
            (where_clause
              (where_conditions
                (where_condition
                  field: (identifier)
                  (filter_keyword)
                  value: (filter_value
                    (integer)))))))
        (property
          name: (property_name)
          value: (identifier)))
      (field_declaration
        id: (integer)
        name: (quoted_identifier)
        type: (type_specification
          (basic_type))
        (property
          name: (property_name)
          value: (aggregate_formula
            function: (aggregate_function)
            target: (calc_field_reference
              (quoted_identifier))
            (where_clause
              (where_conditions
                (where_condition
                  field: (identifier)
                  (filter_keyword)
                  value: (filter_value
                    (quoted_identifier)))))))
        (property
          name: (property_name)
          value: (identifier))))))
