Summary

This chapter introduced you to JavaScript and how you can integrate it into Orchestrator. You learned how to use the scriptable task and the action element to directly write JavaScript code into your workflow.

We learned how to use the if-clause and what conditions are and how to form them. We also had a look at some of the common string problems that one may encounter.

In the next chapter, we will use presentation to improve user experience and reduce input errors.

Correct answers

Check whether mySecondValue equals Hello:

if (mySecondValue=="Hello") {
  myOutput="Well Helllo";
} else {
  myOutput="no hello";
}

Check both the conditions:

if ((myFirstValue>5)&&(mySecondValue=="Hello")) {
  myOutput="Well Helllo, its bigger than 5";
} else {
  myOutput="no hello and smaler then 5";
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset