1.

Solve : HTML help to not show object if blank?

Answer»

I'm new to HTML and I'm struggling to find a way to not display an object if the object is EMPTY. I have the FOLLOWING code:

{{id}} County Distilleries:
 {{#each objects}}
    {{{distillery_name}}}
      {{address}}
    Website[/url]
    My Visit[/url]
Directions[/url]   
{{/each}}

All objects are always filled except the my-visit ONE. If my_visit is blank then the TEXT My Visit STILL appears. I don't want it to appear. Any suggestions would be greatly appreciate.

Roger C



Discussion

No Comment Found