V
V
VegasChickiChicki2020-02-13 12:45:04
Pug
VegasChickiChicki, 2020-02-13 12:45:04

How to not display a variable in an attribute if it is false?

source(type='image/webp' data-srcset=webp[i].x1 + webp[i].x2 + webp[i].x3)


There is such a piece of code, I can’t figure out how to indicate that if one of the variables is false, then it doesn’t need to be displayed.
Now 0 is displayed, then false as a string, but I just need to ignore it. I tried to find it, but I didn't see such an example.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question