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 = 0Numeric sum of two or more operands.
Subtract = 1Numeric difference of exactly two operands (left minus right).
Multiply = 2Numeric product of two or more operands.
Divide = 3Numeric quotient of exactly two operands; never integer-truncated. Division by zero yields null.
Modulo = 4Numeric remainder of exactly two operands. A zero divisor yields null.
Negate = 5Arithmetic negation of exactly one operand.
Concat = 6String concatenation of two or more operands (each rendered invariantly).
Coalesce = 7The first non-null operand, or null if all operands are null.
Count = 8The 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.