Skip to content
Advertisement

How to Mange IF and Else In Forloop with Json empty Data

I am looking for

if { "name": "Morris Holmes", "occupation": "programmer", "country": "" }

When country”: “” string is empty on that time don’t run function because is not good for SEO. empty <td></td> td tag

How to manage if and else part

enter image description here

JavaScript
JavaScript

Advertisement

Answer

Use following code

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement