IF / THEN / ELSE (conditional)

Last updated on
16 June 2022

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

Inline, conditional branching provides an easy-to-build, easy-to-read configuration flow. These also help avoid the need to create large sets of trivial rules (with conditions) in order to perform simple branched actions.

Starter examples are available in #1666846: Examples of If/Then/Else and Switch/Case Rules.

Note: Complex conditions require a condition set in the condition elements, otherwise a single condition is available.

Example Use Case #1:

  • When a user has finished a Quiz
  • Fetch the user's results
  • And populate the results fields

Help improve this page

Page status: No known problems

You can: