Plugin screenshot thumbnail 1/1

Empty Coalesce adds the ??? operator to Twig that will return the first thing that is defined, not null, and not empty. This is particularly useful when you're dealing with a number of fallback/default values that may or may not exist, and may or may not be empty.

The ??? Empty Coalescing operator is similar to the ?? null coalescing operator, but also ignores empty strings ("") and empty arrays ([]) as well.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
3,132
Version
5.0.0
License
MIT
Compatibility
Craft 3, Craft 4, Craft 5
Last release
April 13, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
2
Open PRs