none of the following conditions are true

This construct negates a group of conditions.

Purpose

You use this construct to groups together a series of condition statements that you want to negate.

Syntax

none of the following conditions are true:
    - <condition>* [,]

Description

The group evaluates to true only if none of the conditions listed are true.

The construct must be followed by a colon and one or more condition statements, each one on a separate line and preceded by a dash. Note that the dash that precedes each condition must be a ‘short dash’.

Optionally, you can add a comma after the last condition statement in the list to signify the end of the list of grouped conditions. This will separate those conditions that form part of the construct from any additional condition statements that might follow.

Example

The following group of conditions tests that a customer is not a Gold senior member and not under 60.

if
   none of the following conditions are true:
      - the category of 'the customer' is Gold
      - the age of 'the customer' is least 60
then...