Why two equal variables give false statement?
It seems like you're trying to compare two EntryModel objects. Could you just compare their ids?

{% if rowParent.id == parent.id %}
    // Go
{% endif %}


Also, try using Twig's dump() function to find out exactly what's in those variables/objects.

&lt;pre&gt;
    {{ dump(parent) }}
&lt;/pre&gt;


I believe you'll have to have devMode enabled to use dump().