Hi, I’m trying to compare the content of a wappler variable (on a form change) to see if it matches a text string - if it does, I want to run a calculation. (if then)
I’m having a problem and not sure if what I’m trying to do is impossible or if I just have a syntax error. Code section below…
Can you explain outside of the code provided what is the condition you’d like to check and what needs to happen if it’s met, and what if it’s not?
Just explain it like:
I want to check if form input value 1 equals form value 2 etc.
What is OnceGramValue - is it a variable defined in app connect? Is it a form input?
What should be its value if the var1wordsforcalculatebydropdown.value is not equal to "Thickness Factor"??
I can’t use DMX-bind:value= for this since I’m already using DMX-bind:value= for something else in the statement. And it will not allow me to have two DMX-bind:value= in the same statement
Can it work using dmx-on:change=
This is the last thing I need to work and I can eliminate 60% of my codebase
I don’t understand why using dmx-on:change= does not / can not work with the added conditional statement. If I leave out the conditional part it (see below) works fine. In other words, this works - but I need the condition.
Yes, it is working now - I think I had the setvalue in the original example I posted so was it just that I did not have the else (the two single quotes) the reason it did not work?.
Only asking so I can learn - very happy that is is working now - a big thank you for that!!!