reverse
- 10 Feb 2025
-
DarkLight
-
PDF
reverse
- Updated on 10 Feb 2025
-
DarkLight
-
PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Task 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 example, our Reference variable for the arr
is ["1","2","3"]
.
The result of this task will be ["3","2","1"]
, which is the reverse order of the input variables.
Was this article helpful?