The below example is a simple onEvent program that contains a boolean variable (boolVar), string variable (strVar), strMacro block, and email block. The main focus is on the strVar and strMacro. There are other equip variables and they are damper, roomTemp, and occMode. They are just there to show example of how we can get the current value when the boolVar is true and display that on the email.