The else command can execute when an if command fails. The if and else control statements work together in a policy script to filter messages.
if test { action; next_action; } else { action; next_action; }
In this example, if the test is "true", execute the first set of statements. else, execute the second.
if pmx_virus { reject "Virus Found in Message"; stop; } else { keep; }
In this policy filter, the if and else control statements work together with tests and actions to either reject a virus-laden message or to deliver virus-free mail to envelope recipients. The else command executes when the if statement fails.