Documentation > CMS Template API Library > FilterParams > Add(String,Comparison,String,Boolean)

Add

Adds a filter on a field to be compared as a .

public System.Void Add(String,Comparison,String,Boolean)

Parameters

NameDescriptionType
name The name of the field to compare. System.String
comparisonOperator The comparison operator. CrownPeak.CMSAPI.Comparison
value The value. System.String
checkLists Optional: Set to true if the field might be stored in an array (on a repeating panel). System.Boolean

Code Example

C#

Sample:

            
            FilterParams filter = new FilterParams();
            filter.Add("foo",  Comparison.Equals, "bar");
            
            

Connect with Crownpeak