122
rated 0 times
[
124]
[
2]
/ answers: 1 / hits: 43869
/ 8 Years ago, sat, december 17, 2016, 12:00:00
I have a page that makes a foreach and show some photos like this
<% imgs.forEach(function(img) { %>
<img src=uploads/<%=user.username%>/screenshots/<%= img %>>
<% }); %>
And I want make a if statement because, in case that not photos to show gives a message like this:
no photos uploaded
More From » html