Skip to main content
Question

Nested conditions not working

  • September 4, 2023
  • 0 replies
  • 307 views

Giselle1

I am trying to do a logic where clicking a button checks if some text variables has the placeholder value, if they still has they should appear red on the borders and show an error message. It does work on the first condition, but if i want to nest another validation like on the second input it doesn’t work, it seems like it don’t read it and just executes the first “if else”, as they are different components i can’t use “or” since they need to check two different values and apply one variable if the condition a or b is true.

If the first condition is true, it bypasses completely the second condition and executes the first “else”, If i left on blank the first else, only then it reads the second condition… is there any better way to work with it? as i need for example on a form to check multiple conditions at once and not one by one.

This topic has been closed for replies.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings