Microsoft MakeCode

Creating an multi handler function in an extension

Hello everyone, I am trying to create a new block using an extension. I want the block to handle more the one handler, an example for it can be the if+else block in the logic section.

*At first I need it to handle only 2 handlers(like if+else), but it would be even better if it was expandable(like the if).


Does anyone know how to make it happen?
*A code of the “if” block by MakeCode would help me a lot.

Thank you.

1 Like