Utilisation de ponctuation pour clarifier les règles

Utiliser des virgules ou des parenthèses pour éviter de construire des règles qui auraient plusieurs interprétations possibles.

Il y a ambiguïté lorsqu'une partie d'une règle a au moins deux interprétations sémantiquement correctes ou qu'il y a deux termes ou phrases identiques dans le vocabulaire.

Par exemple, la formulation suivante est ambiguë :

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 signale une ambiguïté (qui apparaît en vert Icône d'erreur de cohérence) car il ne sait pas si the salary of the customer is more than 100 est associé à the age of the customer is at most 15 ou s'il s'agit de la troisième condition de la règle.

Pour lever cette ambiguïté, vous pouvez ajouter une virgule à la fin de l'instruction de condition 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

Un autre moyen de lever l'ambiguïté est d'utiliser des parenthèses pour grouper les expressions.

En présence de deux termes ou phrases identiques dans le vocabulaire, vous pouvez lever l'ambiguïté en changeant l'un des termes ou phrases.