I have two equal variables comparing each other which give me false. One variable is set out of ancestor entry in structure and another one out of ancestor entry as well. Both variables are set a bit differently.
{% set parent = craft.entries.ancestorOf(entry).order('lft desc').first() %}
Following variable is set within table field
{% for row in entryId.table %}
{% set id = row.entryId %}
{% set rowParent = craft.entries.ancestorOf(id).order('lft desc').first() %}
{% if rowParent == parent %}
// Go
{% endif %}
{% endfor %}
Both variables print the same text with case sensitive letters and spaces.