As you are well aware, when using default (as mentioned here ), you still needed to create an additional line of code to assign it to a local variable.
For instance:
{% input custom.vat.nbr default:company.vat_identifier %}
{% assign vat_nbr = custom.vat.nbr | default:company.vat_identifier %}
VAT : {{ vat_nbr }}
As you can see, we needed to create an extra assign-statement to create our local variable vat_nbr
.
Not anymore though!
You now can simply create your local variable in the same line of code where the default is, like this:
{% input custom.vat.nbr default:company.vat_identifier assign:vat_nbr %}
So lesser code