Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Token OR

Security covered Maintenance fixes only 15,256 sites

Part of the Token ecosystem · 21 projects

This module enhances the token system by allowing multiple tokens or strings to be evaluated with "OR" logic, returning the first non-empty value. It can be used to provide fallback options for dynamic content.

This module extends the token module to use "OR" logic within a single token. It returns the first token or string that is not empty.

[node:field_og_image:entity:url|node:field_header_image:entity:url|"https://www.drupal.org/files/drupal-wordmark.png"]

Requires the token module.

Since 2.2.0, this module supports Webform via a submodule.

Drupal 9–11

Ask your assistant about Token OR

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Jul 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.3.2 Stable 9–11 May 27, 2025
2.3.1 Stable 9–11 May 14, 2025
2.3.0 Stable 9–11 Nov 5, 2024
2.2.1 Stable 8–10 Oct 9, 2024
2.2.0 Stable 8–10 Dec 12, 2023
2.1.1 Stable 8–10 Jul 25, 2023