How to use a global variable in a conditional statement if an entries relation field is empty? {% if entry.fieldHandle %}
  {{ entry.fieldHandle}}
{% else %}
  {{ global.fieldHandle}}
{% endif %}


Doesn't seem to be rendering for me. The entry field shows up when it's true, but the global field doesn't in the cases it needs to.
The reason it wasn't rendering is because my original entry field is an Entries Field (see templating examples in the docs). The relationship fieldtypes (Entries, Assets, Users) require that you include the length filter in your conditional like so:

{% if entry.fieldHandle |length  %}
  {{ entry.fieldHandle}}
{% else %}
  {{ global.fieldHandle}}
{% endif %}


Thanks to Keith Mancuso @keithmancuso for the fix!