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

Add

Adds a filter on a field to be compared as a . Fields can be filtered as floats if they are a number in the range - 1.79E+308 to -2.23E-308, 0 and 2.23E-308 to 1.79E+308 . This is a limitation of the database storage. It does not have the range of a double in C#.

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

Parameters

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

Connect with Crownpeak