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

Add

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

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

Parameters

NameDescriptionType
name The name of the field to compare. System.String
comparisonOperator The comparison operator. CrownPeak.CMSAPI.Comparison
value The value. System.Boolean
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, true);
            
            

Connect with Crownpeak