Table of Contents

Enum ConditionOperator

Namespace
RuleWright.Core
Assembly
RuleWright.Core.dll

Comparison operator applied by a ConditionLeaf. JSON documents use the schema spellings ("Equals", "NotEquals", …); the domain enum uses Equal/NotEqual to avoid colliding with Equals(object).

public enum ConditionOperator

Fields

Equal = 0

Field equals the comparison value (JSON: Equals).

NotEqual = 1

Field does not equal the comparison value (JSON: NotEquals).

GreaterThan = 2

Field is greater than the comparison value.

GreaterThanOrEqual = 3

Field is greater than or equal to the comparison value.

LessThan = 4

Field is less than the comparison value.

LessThanOrEqual = 5

Field is less than or equal to the comparison value.

Contains = 6

String field contains the comparison string (ordinal).

StartsWith = 7

String field starts with the comparison string (ordinal).

EndsWith = 8

String field ends with the comparison string (ordinal).

MatchesRegex = 9

String field matches the comparison regular expression.

In = 10

Field is contained in the comparison array.

NotIn = 11

Field is not contained in the comparison array.

IsNull = 12

Field (or any segment of its path) is null.

IsNotNull = 13

Field is not null (and every segment of its path resolves).

Custom = 14

A registered IRuleFunction decides (JSON: custom with name).

Any = 15

At least one element of the collection field satisfies ElementCondition (JSON: Any with condition). False for an empty collection.

All = 16

Every element of the collection field satisfies ElementCondition (JSON: All with condition). Vacuously true for an empty collection.

None = 17

No element of the collection field satisfies ElementCondition (JSON: None with condition). Vacuously true for an empty collection.