I'm creating website with a list of products available in a shop. When any of them is sold or broken, i want to mark it as lost and style with css, but i can't find any documentation about how to use if statement with mongodb and expressjs?