Documentation > CMS Template API Library > FilterParams > Add(String,Comparison,Int32,Boolean)
Add
Adds a filter on a field to be compared as an .
public System.Void Add(String,Comparison,Int32,Boolean)
Parameters
Name | Description | Type |
---|---|---|
name | The name of the field to compare. | System.String |
comparisonOperator | The comparison operator. | CrownPeak.CMSAPI.Comparison |
value | The value. | System.Int32 |
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, 42);