Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This action allows you to write custom server-side JavaScript code that defines a structure, such as a loop or a condition. Other actions can then be placed within the structure.

Image Added

Enter code to start your loop or condition

The code should include a starting curly brace, but the ending curly brace should not be included because it is implied.

For example:

to create a loop that repeats 3 times, you can use something like this:  

Code Block
for (var x = 1; x <= 3; x++) {

to create a condition

Code Block
if ((myVar >= 0 && myVar < 10 ) || (myVar >= 15 && myVar < 18)) {


Image Added

Edit the description at the top to make the steps easier to read

Image Added

This will appear as a set of brackets on the designer canvas.


Image Added

You can then either drag other steps into the brackets or drag one of the brackets around other steps.

Image Added