ArcMap Version: 10.4.1
I have a script that uses a metadata module to check what the metadata of a feature class is. It's probably something simple, but I can't explain why only two of the four if else statements are working the way I want them to. I'm trying to print the title, tags, summary and description. And when there is no text my script is supposed to tell it to print the else statement. Title and tags seem to work but not summary and description.
As you can see from the PrtScn the feature class has no info except for the title.

<SPAN class="keyword token">import</SPAN> arcpy
<SPAN class="keyword token">import</SPAN> arcpy_metadata <SPAN class="keyword token">as</SPAN> md
metadata <SPAN class="operator token">=</SPAN> md<SPAN class="punctuation token">.</SPAN>MetadataEditor<SPAN class="punctuation token">(</SPAN>r<SPAN class="string token">'\\gisfile\GISstaff\Jared\Attractions.gdb\RT66'</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">def</SPAN> <SPAN class="token function">meta2txt</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
title <SPAN class="operator token">=</SPAN> metadata<SPAN class="punctuation token">.</SPAN>title
tags <SPAN class="operator token">=</SPAN> metadata<SPAN class="punctuation token">.</SPAN>tags
purpose <SPAN class="operator token">=</SPAN> metadata<SPAN class="punctuation token">.</SPAN>purpose
abstract <SPAN class="operator token">=</SPAN> metadata<SPAN class="punctuation token">.</SPAN>abstract
<SPAN class="keyword token">if</SPAN> title <SPAN class="operator token">==</SPAN> metadata<SPAN class="punctuation token">.</SPAN>title<SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'Title:\n{}\n'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>title<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">else</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'Title: \nThere is no title.\n'</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">if</SPAN> tags <SPAN class="operator token">==</SPAN> metadata<SPAN class="punctuation token">.</SPAN>tags<SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'Tags:\n{}\n'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>tags<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">else</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"Tags: \nThere are no tags.\n"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">if</SPAN> purpose <SPAN class="operator token">==</SPAN> metadata<SPAN class="punctuation token">.</SPAN>purpose<SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'Summary:\n{}\n'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>purpose<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">else</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'Summary: \nThere is no summary.\n'</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">if</SPAN> abstract <SPAN class="operator token">==</SPAN> metadata<SPAN class="punctuation token">.</SPAN>abstract<SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'Description:\n{}\n'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>abstract<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">else</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'Description: \nThere is no description.\n'</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token">##</SPAN>
meta2txt<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
As you can see the title has been printed and the tags' else condition has printed the string too. The Summary and the Description is supposed to print 'There are no tags.' as Tags has. Using the debugger, it stops on lines 23 and 28 as if it wants to print them, but doesn't. That's what I don't understand.