Task References

On this page:

reverse

Purpose

The reverse task is used to reverse the order of the elements in an array. The first array element becomes the last, and the last array element becomes the first.

Potential Use Case

Suppose you have a dataset and you want to view the records in the reverse order to what you currently have. You can use the reverse task to flip the dataset in the opposite order.

Properties

Input and output parameters are shown below.

Incoming Type Description
arr Array Required. The array to reverse.


Outgoing Type Description
reversedArray Array The reversed array.

Example

In this IAP example, our Reference variable for the arr is ["1","2","3"].

reverse

The result of this task will be ["3","2","1"], which is the reverse order of the input variables.

reverseresult