title: Trying to return String using Flask
body: <p>I was trying to return a string using render_template, but it's only returning the else statement. But it's working when I'm trying to print in the console. But not when I'm trying to use in jinja.</p>
  <pre><code> def healthchecker():
     # health = &quot;&quot;
     for key,value in raw.items():
       if 'properties' in value:
          health = &quot;Yes&quot;
          print(health) 
                                                          
       else:
          health = &quot;None&quot;                                               
          print(health)
  
     return health                                         
                                             
   return render_template('portlist.html', data = raw, health = healthchecker())
  </code></pre>