reverse
  • 23 May 2023
  • Dark
    Light
  • PDF

reverse

  • Dark
    Light
  • PDF

Article summary

reverse 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 IAP example, our Reference variable for the arr is ["1","2","3"].

reverse Task

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

reverse Task Result


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.