オブジェクトがセットに属しているかどうかをテストする条件

条件を使用して、オブジェクトが、定義されたカテゴリーに属しているかどうかをテストすることができます。

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

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

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

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'
then ...