What if syntax for IF condition?
I would like to query a prior drop down list, and I've tried a number of things, but instead of doing a validation, its seems to be assigning a value... In the drop down, I've set the Value of one of the choices as "allp" and when I do the following:
=$form1.state.dropDownList1.value in an alert, I get "allp"? but when I try the following as the Conditional of the IF action, I get a blank alert...
=$form1.state.dropDownList1.value = allp
-
Hello Mike,
For an If statement, you'll want to use the '===' operator. For example, =$displayform1.result === "submit"
Thanks, Stefan
0 -
Thanks Stefan. Is this in the documentation anywhere? I couldn't find it.?
0 -
No problem, I've added a task to add more information regarding this in our documentation. Expressions use Javascript syntax.
0 -
Haven't been a programmer for many moons, and not at all familiar with JavaScript. But yes, now that you mention it,i do remember that being one of the differences between the two workflow products. Could have googled it had I thought it through. I must say, so far I'm finding it reasonable to learn. Do you figure most will take a course or two, or will try to learn with what you guys are providing? $1000 is a bit much for an online course, and I'm guessing the course uses the same materials? 0 -
I think it'll depend on how folks like to learn. Personally I see a lot of value in having the instructor/class environment so that you can walk through things in a logical order, cover best practices/features/processes you might not have discovered on your own, get a more in depth understanding of why things work the way they do, and get live assistance if you get stuck or have general questions. I've taken a look at the material that we've been working on for the upcoming course and I've definitely learned some new things from it.
But some folks prefer self-learning or don't get to budget for training, and that's okay too. We have tutorials and examples to cover most activities and basic processes so that you can gets started and learn on your own:
- The Getting Started page (https://communities.geocortex.com/workflow/s/article/ka1f2000000fxSuAAI/GW5-Get-Started) links to the tutorials, documentation, and samples
- More basic samples are available in Workflow Designer under File > New
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
5 commentaires