DRAKON.SU https://forum.drakon.su/ |
|
The Choice icon https://forum.drakon.su/viewtopic.php?f=218&t=6564 |
Страница 1 из 1 |
Автор: | Владимир Паронджанов [ Понедельник, 20 Май, 2019 09:23 ] |
Заголовок сообщения: | The Choice icon |
The Choice icon https://drakon.tech/js/tutorials/choice https://www.youtube.com/watch?time_cont ... GXvaGx8x3I Цитата: Опубликовано: 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" icon
Use 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: |
Страница 1 из 1 | Часовой пояс: UTC + 3 часа |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |