Verificando Valores Nulos
É possível incluir nas regras uma condição para verificar se uma entidade é nula ou não nula.
Use a construção if <entity> is null then... para testar se uma entidade é nula. Por exemplo, a regra a seguir verifica se o relacionamento com a entidade the customer não existe:
when a purchase event occurs , called 'the purchase'
se
the customer of 'the purchase' is null
então
print "There is no customer!";