Piecewise

Build chat bots with blocks

🔔 when (event) do (statement)

In Matrix → Events

Jump to block

Run code when an event occurs, such as the bot starting.

Parameters

Parameter name Parameter type Required? Description
event any The event to listen to.
statement statements… The statements to execute when the event is triggered.

Output

void - This is a statement with no outputs