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 = 0Field equals the comparison value (JSON:
Equals).NotEqual = 1Field does not equal the comparison value (JSON:
NotEquals).GreaterThan = 2Field is greater than the comparison value.
GreaterThanOrEqual = 3Field is greater than or equal to the comparison value.
LessThan = 4Field is less than the comparison value.
LessThanOrEqual = 5Field is less than or equal to the comparison value.
Contains = 6String field contains the comparison string (ordinal).
StartsWith = 7String field starts with the comparison string (ordinal).
EndsWith = 8String field ends with the comparison string (ordinal).
MatchesRegex = 9String field matches the comparison regular expression.
In = 10Field is contained in the comparison array.
NotIn = 11Field is not contained in the comparison array.
IsNull = 12Field (or any segment of its path) is null.
IsNotNull = 13Field is not null (and every segment of its path resolves).
Custom = 14A registered IRuleFunction decides (JSON:
customwithname).Any = 15At least one element of the collection field satisfies ElementCondition (JSON:
Anywithcondition). False for an empty collection.All = 16Every element of the collection field satisfies ElementCondition (JSON:
Allwithcondition). Vacuously true for an empty collection.None = 17No element of the collection field satisfies ElementCondition (JSON:
Nonewithcondition). Vacuously true for an empty collection.