When the event specified by the when command specified event occurs, the cmds are executed. Once the commands have all executed, the process is automatically continued.
when event-specification [ modifier ] { cmds ... ; }