Documentation > CMS Template API Library > Comparison

CrownPeak.CMSAPI.Comparison

An enumeration representing operations that can be used in .

Possible enumeration values:

NameDescriptionValue
Contains

Contains. Only valid on strings.

14

EndsWith

Ends with. Only valid on strings.

13

Equals

== operator

4

GreaterOrEquals

>= operator

1

GreaterThan

> operator

0

IsInSet

Is in set

9

IsNull

== null

8

LessOrEquals

<= operator

3

LessThan

< operator

2

NotEquals

!= operator. Note for custom fields this only matches assets where the named field exists.

5

NotInSet

Is not in set. Note for custom fields this only matches assets where the named field exists.

10

NotNull

!= null

7

NullOrNotEquals

== null or != value

6

NullOrNotInSet

Is null or not in set

11

StartsWith

Starts with. Only valid on strings.

12

Connect with Crownpeak