Remove element from a list
Overview
The remove element deluge task removes a specified element from a list.
Syntax
<list_variable>.removeElement(<expression>);
| Parameter | Description |
|---|---|
| <list_variable> | List variable from which an element will be removed. Data type is List. |
| <expression> | Element which will be removed from the list. You can specify a variable containing the element as a value, or you can specify an expression that evaluates to the required element. If the element is not found, there is no error encountered. |
This task can be used in the following events
| When a record is Created | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Created or Edited | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Edited | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Deleted | ||
| On Validate | Yes | |
| On Success | Yes | |
| Other workflow events | ||
| On a scheduled date | Yes | |
| During approval process | Yes | |
| During payment process | Yes | |
| In a Custom Function | Yes | |
| In an Action item in report | Yes | |
Example
The following snippet removes "Tuesday" from the "days" list.
days={"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"};
days.removeElement("Tuesday");
days.removeElement("Tuesday");