条件の否定

条件が真でない場合にアクションが実行されるように、ルールを設定できます。

次の演算子を使用すると、1 つ以上の条件が真でないかどうかをテストすることができます。

it is not true that

条件を否定するには、演算子 it is not true that を使用します。

次の条件では、顧客がゴールド・カテゴリーのメンバーであるかどうかがチェックされます。

if 
	the category of the customer is Gold 
then... 

顧客がゴールド・カテゴリーのメンバーでないかどうかをチェックするには、次のステートメントを使用できます。

if 
	it is not true that the category of the customer is Gold 
then... 
none of the following conditions are true

条件のグループを否定するには、演算子 none of the following conditions are true を使用できます。 論理演算子 and がグループ内の条件を結合します。

if 
	all the following conditions are true: 
		- the category of the customer is Gold 
		- the age of the customer is at most 15 
then... 

次の if ステートメントは、すべての条件が真でない場合にのみ true となります。

if 
	none of the following conditions are true: 
		- the category of the customer is Gold 
		- the age of the customer is at most 15 
then...