1SimpleFilterPart sfp1 = new SimpleFilterPart();
2 sfp1.Property = "SubscriberKey";
3 sfp1.SimpleOperator = SimpleOperators.IN;
4 sfp1.Value = new String[] { "1", "2", "8" };
5 SimpleFilterPart sfp2 = new SimpleFilterPart();
6 sfp2.Property = "SubscriberKey";
7 sfp2.SimpleOperator = SimpleOperators.IN;
8 sfp2.Value = new String[] { "3", "6", "12" };
9 ComplexFilterPart cfp1 = new ComplexFilterPart();
10 cfp1.LeftOperand = sfp1; // Simple Filter
11 cfp1.LogicalOperator = LogicalOperators.OR;
12 cfp1.RightOperand = sfp2; // Simple Filter
13 SimpleFilterPart sfp3 = new SimpleFilterPart();
14 sfp3.Property = "Status";
15 sfp3.SimpleOperator = SimpleOperators.equals;
16 sfp3.Value = new string[] { SubscriberStatus.Active };
17 ComplexFilterPart cfp2 = new ComplexFilterPart();
18 cfp2.LeftOperand = cfp1; // Complex Filter
19 cfp2.LogicalOperator = LogicalOperators.AND;
20 cfp2.RightOperand = sfp3; // Simple Filter