Use this area to implement your own trigger logic in Groovy. The last line will be evaluated as a boolean to determine whether or not the trigger should cause an email to be sent.