# Class Filter OptimaJet.Workflow.Api.Models.Filter A field comparison or a logical combination of nested filters. Namespace: [OptimaJet.Workflow.Api.Models](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/) ```csharp public class Filter where TField : Enum ``` ## Constructors ### `public Filter(FilterType type, Filter[]? filters, TField? field, object? value)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `type` | `FilterType` | | | `filters` | ``Filter`1[]`` | | | `field` | `{TField}` | | | `value` | `Object` | | ## Properties ### `[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(JsonStringEnumConverter))] public FilterType Type { get; }` Gets the comparison or logical operator. ### `public Filter[]? Filters { get; }` Gets the nested filters used by And, Or and Not operators. ### `[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(JsonStringEnumConverter))] public TField? Field { get; }` Gets the field used by a comparison operator. ### `[JsonConverter(typeof(ObjectJsonConverter))] public object? Value { get; }` Gets the value compared with the selected field. ## Methods ### `public static bool TryParse(string? value, out Filter? filter)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `value` | `String` | | | `filter` | `Filter` | | ### Returns | Type | Description | | --- | --- | | `Boolean` | | [Previous ExecuteCommandResponse](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/ExecuteCommandResponse/) [Next FilterType](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/FilterType/)