구두점을 사용하여 명백한 규칙 작성
쉼표나 소괄호를 사용하여 규칙이 여러 가지로 해석되지 않게 빌드할 수 있습니다.
모호성은 규칙에 의미적으로 올바른 해석이 두 가지 이상인 경우 또는 어휘에서 동일한 용어 또는 구문이 두 개인 경우에 발생합니다.
예를 들어, 다음 명령문은 모호합니다.
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
the salary of the customer
is more than 100이 the age of the customer is at most 15와 연관되었는지 또는
규칙의 제3의 조건인지 구분할 수 없기 때문에 Rule
Designer에서
모호성 오류(녹색
으로 표시됨)가 발생합니다.
모호성을 제거하려면 다음과 같이 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
또는 그룹 표현식에 소괄호를 사용하여 모호성을 제거할 수도 있습니다.
어휘에 동일한 용어나 구문이 두 개가 있는 경우는 용어 또는 구문 중 하나를 변경하여 모호성을 제거할 수 있습니다.