条件の否定

条件が true ではない場合にアクションを実行するルールを設定できます。

これらの演算子を使用して、true でない条件が 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 ではない場合にのみ、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...