Answer the question
In order to leave comments, you need to log in
How to correctly write a condition for the output with zero in pug?
Good day to all.
I pass the minsumm variable to the render.
It can contain (0, ' ', any number)
You need to write a condition, if a number is not specified, then it displays
individual
From...
if(minsumm !=null)
| От !{minsumm}
else
| индивид.
if(minsumm !=' ')
| От !{minsumm}
else
| индивид.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question