Null coalescing operator for TypoScript constants
Null coalescing operator for TypoScript constants
If you want to use new constant names but still need to support the old names
there is a new operator ?? . It uses the first constant in the list that has a value.
plugin.tx_myext.settings.size = {$config.size ??
$myext.setting.size}
First config.size is checked and if that’s not set the new
myext.setting.size will be used. It supports multiple variables:
something = {$new.constant ?? $old.const ??
$really.old.const}
task