Опубликовано: 10 мая 2019 г.
Use the Choice icon to represent a question that has multiple answers.
Add a default option when necessary.
https://drakon.tech/When to use the "Choice" iconUse the "Question" icon for questions that have two answers, "yes" or "no."
When there is a question that has multiple answers, use the "Choice" icon. The "Choice" icon is a visual equivalent of JavaScript's "switch" statement.
Note:
The expressions both in the "Choice" and in the "Case" icons are evaluated only once.
If the rightmost "Case" icon is empty, it means "all other values." That is similar to the "default" clause in the "switch" statement.
If the rightmost "Case" icon is not empty, the "default" clause with throw an error.
A "Choice" icon: