Usando pontuação para esclarecer regras
Use vírgulas ou parênteses para evitar construir regras que teriam, de outra maneira, múltiplas interpretações.
Ambiguidades ocorrem quando parte de uma regra tem pelo menos duas interpretações que estão semanticamente corretas ou quando há dois termos ou duas frases idênticos no vocabulário.
Por exemplo, a instrução a seguir é ambígua:
if all of the following conditions are true: - the category of the customer is Gold - the age of the customer is at most 15 and the salary of the customer is more than 100
Rule Designer aumenta
um erro de ambiguidade (que aparece em
verde) porque ele não pode
indicar se the salary of the customer
is more than 100 está associado com the age of the customer is at most 15,
ou se essa é a teceira condição da regra.
Para remover a ambiguidade, é possível incluir uma vírgula no término da instrução de condição the age of the customer is at most 15:
if all of the following conditions are true: - the category of the customer is Gold - the age of the customer is at most 15, and the salary of the customer is more than 100
Uma forma alternativa de remover ambiguidade é usar parênteses para agrupar expressões.
Em casos em que há dois termos ou frases idênticos no vocabulário, mude um dos termos ou frases para remover a ambiguidade.