Table of Contents

Enum ExpressionOperator

Namespace
RuleWright.Core
Assembly
RuleWright.Core.dll

The closed vocabulary of operators available inside a computed action OperatorExpression. Deliberately small and pure-data — RuleWright never embeds arbitrary code strings, so a UI can safely generate these and a reviewer can safely diff them.

public enum ExpressionOperator

Fields

Add = 0

Numeric sum of two or more operands.

Subtract = 1

Numeric difference of exactly two operands (left minus right).

Multiply = 2

Numeric product of two or more operands.

Divide = 3

Numeric quotient of exactly two operands; never integer-truncated. Division by zero yields null.

Modulo = 4

Numeric remainder of exactly two operands. A zero divisor yields null.

Negate = 5

Arithmetic negation of exactly one operand.

Concat = 6

String concatenation of two or more operands (each rendered invariantly).

Coalesce = 7

The first non-null operand, or null if all operands are null.

Count = 8

The number of elements in a single collection operand, as a long. Null when the operand is null or is not a collection; a string is text, not a collection of characters.