ルールを明確にするために句読点を使用する
複数の解釈ができるルールを作成しないようにするには、コンマまたは括弧を使用します。
ルールの一部に意味的に正しいが最低 2 通りの解釈できる場合、または語彙内に同じ用語や語句が 2 つある場合にあいまいさが発生します。
以下はあいまいなステートメントの例です。
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 は、「the salary of the customer
is more than 100」が「the age of the customer is at most 15」と関連するのか、
あるいはルールの 3 つ目の条件なのか判断できないため、あいまいさのエラーが発生します (緑色の
で表示されます)。
あいまいさを解消するには、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
あいまいさを解消するもう 1 つの方法は、括弧で式をグループ化することです。
語彙に同じ用語または語句が 2 つある場合は、そのうちの 1 つを変更してあいまいさを排除します。