Restrict the maximum cardinality of the related input based on a boolean expression.
If the expression tested by single-value
evaluates to true
, the prompt will behave as if max (One)
was specified for the related input. If it evaluates to false
, the prompt will use the value that the related input specifies for max
.
...
prompt (items) {
single-value (size(basket) == 1)
candidates (matches)
}
...
You can use single-value
to restrict an input constraint, but an input already specified as max (One)
cannot have its cardinality constraint loosened to max (Many)
.
Copyright 2025 Samsung All rights reserved