(var1.value == (1 || 2)) I'd like this to show this page element when var1's value is 1 or 2 what is wrong with this code?

Hey all,

Quick one - I’d like an element to appear with the var1 value is 1 or 2. I’m setting the value based on tab clicks, all works fine. But for some reason this isn’t working. This is the syntax generated by Wappler UI, but it doesn’t always output the right syntax so hoping for some insight from the forum!

Matt

It works for me if i do it like this (ignore the modal)

<p dmx-show="modal1.var1.value == 1 || modal1.var1.value == 2">Modal body text goes here.</p>
1 Like

Thanks @Philip_J - that worked well. Much appreciated and I hope you are doing well, too.