Logical Operators

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

A logical operator, also called a logical connective or a truth function, is a symbol or word used to connect two or more sentences, such that the sense of the compound sentence produced depends only on the original sentences.

The most common logical connectives are binary connectives which join two sentences which can be thought of as the function's operands. Also commonly, negation is considered to be a unary connective.

Logical Operators

A logical operator, also called a logical connective or a truth function, is a symbol or word used to connect two or more sentences, such

AND and OR (groups)

It's possible to combine conditions or actions by using and and or groups to perform multiple conditions or multiple actions together. It

IF / THEN / ELSE (conditional)

Inline, conditional branching provides an easy-to-build, easy-to-read configuration flow. These also help avoid the need to create large

ANY / ALL (conditions on list items)

These plugins are found in Rules List Conditions.

LOOP (foreach)

An important functionality in Rules 2 is the ability to use lists of data to create loops. Loops allow performing actions on each of the

WHILE (loop) (conditional)

Note: Only a simple condition can be configured. It is recommended that complex conditions be constructed as a condition set and then used

Guide maintainers

TR's picture