In case you need to configure Advanced Email Rules you can define them using PHP code instead of using the available query builder.
You can insert custom code in the ‘Email Messages Filter‘ ‘Set Main Model Values‘ and ‘Set Related Model Values‘ fields, to access their scripting area just click on the </> button.