Posts by André Lagacione • 26 points
1 post
-
1
votes1
answer75
viewsA: If/Else block not working in Javascript
Surely the db.each(...) method is an asynchronous function, since it queries the database and needs it to respond, if/Else would have to be within this callback function or you can use the…