Part of the Token ecosystem · 22 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.
Webform is supported since 2.2.0 via an included submodule.
Disclosure: AI is used to write and test code, as well as to evaluate bug reports. All with human oversight.
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.
More in the Token ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 3.0.0-beta2 | Pre-release | 10–11 | Oct 27, 2026 | ||
| 2.3.4 | Stable | 9–11 | Oct 27, 2026 | ||
| 3.0.0-beta1 | Pre-release | 10–11 | Oct 26, 2026 | ||
| 3.x-dev | Dev | 10–11 | Oct 26, 2026 | ||
| 2.3.3 | Stable | 9–11 | Oct 26, 2026 | ||
| 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 |