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

Add

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

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

Parameters

NameDescriptionType
name The name of the asset property to compare. CrownPeak.CMSAPI.AssetPropertyNames
comparisonOperator The comparison operator. CrownPeak.CMSAPI.Comparison
value The value. System.Boolean

Code Example

C#

Sample:

            
            FilterParams filter = new FilterParams();
            filter.Add(AssetPropertyNames.SomeBool, Comparison.Equals, true);
            
            

Connect with Crownpeak