Skip to main content

Reverse list

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

Reverses the order of the items in the List. This command takes a list as input and changes the sequence of its elements so that the first element becomes the last, the second becomes the second-to-last, and so on.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

List to reverse

Select a list to reverse its item order

Any valid list variable

Yes

The original list will be modified in-place

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables in the "List to reverse" parameter by clicking the {x} button to select from available list variables. This allows you to dynamically select which list to reverse based on previous workflow steps.


Notes

  • The list must be properly initialized before using this command

  • This action modifies the original list in-place; it does not create a new list

  • Empty lists are valid inputs but will remain unchanged

  • This command works with lists of any data type (strings, numbers, objects, etc.)

Did this answer your question?