TWIG: Quote-template -> empty shipping-address-variable not empty

Hey, people,

maybe anybody has a solution for me before I start a bug-report:

This TWIG-code (only for quotes) results in that pdf:

What I wanna do: If there’s no shipping-address-data are made within the client-details, the shipping-address-field in my pdf shall not be shown:
if quote.client.shipping_address > 0 ; then show quote.client.shipping_address
But it shows it always because the land seems to be not empty. :sigh:

Maybe someone has a brilliant idea. I would appreciate it!

Thanks!

EDIT: First uploaded the wrong graphic, here’s the right one.

Hi,

It may help to add the length filter

Hey, @hillel,

yes, in the real code I already use the length-filter, but the value ain’t zero as you can see. And as long as the state-value may differ, it’s like playing roulette if I set the length-filter up to match exactly with Germany<br/>.

Sorry, I’m not sure. If you need a change in the app to support it I suggest following up on GitHub.