Bixby Developer Center

Guides
References

required-value

optionalvalue required

Restrict the minimum cardinality of the related input based on a boolean expression.

If the expression tested by required-value evaluates to true, the prompt will behave as if min (Required) was specified for the related input. If it evaluates to false, the prompt will use the value the related input specifies for min.

Example

...
prompt (items) {
required-value (size(basket) == 0)
candidates (matches)
}
...
Note

You can use required-value to restrict an input constraint, but an input already specified as min (Required) cannot have its cardinality constraint loosened to min (Optional).