logic in widget

Easy enough, the first button sets a boolean
The secound button has a branch statement, then you can have it do something if the boolean is true and something else or nothing if its not