条件の否定
条件が true でない場合にアクションを実行するルールを設定できます。
否定演算子は、論理演算子 and および or より優先順位が高くなります。以下の演算子を使用して、1 つ以上の条件が true でないかどうかをテストします。
- 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...