You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blockly
As in the title, is there an implementation for the c# switch statement?
Aaron Dodson
unread,
Dec 11, 2024, 11:25:14 AM12/11/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blockly
Hi,
We don't have a switch block in the core block library, but you could certainly create a custom block. The documentation for mutators will likely also be useful as you'd presumably want to be able to dynamically add and remove cases to a `switch` block much like else/elseif clauses in an `if` block.
- Aaron
Giacomo Cecchinato
unread,
Dec 12, 2024, 5:30:56 PM12/12/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blockly
Hi Aaron, thanks for the quick answer. I was also thinking about something similar to the if/elseif block. Do you know if it possible to have a sample code of this block? I looked around but couldn't find anything similar. The manual is nice but a working example would be much more helpful.
Aaron Dodson
unread,
Dec 12, 2024, 5:34:31 PM12/12/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message