all of the following conditions are true

This construct groups together a series of conditions such that the combined statement evaluates to true only if all the listed conditions evaluate to true.

Purpose

The construct all of the following conditions are true provides a more compact and convenient alternative to the logical operator and when you want to combine multiple conditions. The resulting statement is considered true only if each of the listed conditions is true.

Syntax

all of the following conditions are true:
    (- <condition>)+ [,]

Description

This is equivalent to writing if <condition 1> and <condition 2> and ... <condition 2n>. However, if you have a large number of conditions, using the all of the following conditions are true construct can make the rule more readable.

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 separates 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 Gold junior member.

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