Negação de Condição
É possível configurar uma regra para executar uma ação quando uma condição não for true.
Esses operadores podem ser usados para testar se uma ou mais condições não são verdadeiras.
- it is not true that
Use o operador it is not true that para negar uma condição.
A seguinte condição verifica se o cliente é membro da categoria Ouro:
if the category of the customer is Gold then...
Para verificar se o cliente não é membro da categoria Ouro, é possível usar a seguinte instrução:
if it is not true that the category of the customer is Gold then...
- none of the following conditions are true
É possível negar um grupo de condições usando o operador none of the following conditions are true. O operador lógico and vincula as condições no grupo:
if all the following conditions are true: - the category of the customer is Gold - the age of the customer is at most 15 then...
A seguinte instrução if será true apenas se todas as condições não forem true:
if none of the following conditions are true: - the category of the customer is Gold - the age of the customer is at most 15 then...