Empty Coalesce adds the ??? operator to Twig that will return the first thing that is defined, not null, and not empty.
This plugin requires Craft CMS 3.0.0 or later.
To install the plugin, follow these instructions.
Open your terminal and go to your Craft project:
cd /path/to/project
Then tell Composer to load the plugin:
composer require nystudio107/craft-emptycoalesce
Install the plugin via ./craft install/plugin empty-coalesce
via the CLI, or in the Control Panel, go to Settings Plugins and click the Install button for Empty Coalesce.
You can also install Empty Coalesce via the Plugin Store in the Craft Control Panel.
Click here -> Empty Coalesce Documentation
Some things to do, and ideas for potential features:
Brought to you by nystudio107