Syntax
{ [ variable | expression [ ,...n ] | literal .. literal]}[ {+ | -} arithmeticOperator setExpression [...n] ]
Parameters
variable or expression
A variable containing a value to be used in a set expression.
[,…n]
An explicit set value.
literal .. literal
A range of set values, ranging from the value of the first literal to the value of the second literal, inclusive. This range is based on the Unicode character sequence.
The second literal must be of the same type as the first literal, and of a greater value.
arithmeticOperator setExpression
A binary plus ('+') or minus ('-') arithmetic operator to apply to a composite set expression, in conjunction with the specified following set expression.
Description
Set expressions specify set values, which can be dynamic (if specified using qualifiers or identifiers) or static (if specified using expressions or literals).
Note: Set Expressions can only be used for use in Value Constraints (value checking logic).
Examples
Example 1
This example represents the range {A, B, C, D, E, F, G, H, I, J, K, L, N, P, Q, R, S, T, U, V, W, X, Y, Z, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9}.
{"A" .. "Z"} + {0 .. 9} - {"M", "O"}
Example 2
This example represents the range {A, B, C, D, E, F, G, H, I, J, K, L, N, P, Q, R, S, T, U, V, W, X, Y, Z, 0, 1, 2, 5}.
{"A" .. "Z"} - {"M", "O"} + {0, 1, 2, 5}
See Also