セット・メンバーシップ・テストを行う条件

条件を使用してビジネス用語がセットに属するかどうかをテストできます。

次の条件では、顧客のカテゴリーがシルバー、ゴールド、プラチナのいずれかであることをテストします。

if 
	the customer category is one of {Silver, Gold, Platinum}

次の条件では、ルール変数 luxury car groups に、現在のレンタル契約で指定された車両タイプが含まれているかどうかをテストします。 まず、ルールで変数 luxury car groups を、1 日の料金が一定の値を超えるすべての車両グループのセットとして定義します。

definitions
	set 'luxury car groups' to all car groups where the daily rate of each car group is at least 50;
if
	'luxury car groups' contain the car group of 'the current rental agreement'