Hoppa till huvudinnehållet

I am trying to do write an if clause with multiple conditions in workflow 5. I have the following =${$form1.state.locationDDL.value} != 'ALL' And ${$form1.state.locationDDL.value} != 'MAP EXTENT'. This gives a syntax error. How do I achieve this?

Kommentarer

1 kommentar

  • Zack Robison

    Use the JavaScript logical AND operator (&&). You might want to review the other JS operators, I prefer the MDN reference but W3 is more focused on the highlights.

     

    You might also want to take a peek at MDN sections on comparison, short circuiting, ternary operators, and commas, which are perhaps one step more advanced than what you asked about but can make your workflows a lot cleaner and faster to write.

    0

Du måste logga in om du vill lämna en kommentar.