How to mimic branch's UI in a piece's action?

Hello dear all,

i would like to mimic the UI of branch, to be able to make a boolean condition using “and” and “or”, i nside my custom piece’s action.

can you please guide me on how can i do that ?

thanks for your time.


The branch piece could already be used for conditions as “and” and “or.” Could you please elaborate on what you’re trying to achieve and with which pieces? This will help us guide you better.