ListSkip Function
Sometimes it may be useful to modify a list by removing specific elements from the beginning of the list. The ListSkip function allows you to do this by specifying the number of elements to be removed.
Description:
Returns a list with the specified number of elements removed from the start of the list. If the specified number exceeds the total number of elements, the result will be an empty list.
Returns:
Any*
Parameter:
Parameter | Data Type | Description |
|---|---|---|
1 | Any* | The list. |
2 | Whole number | Number of elements from the start of the list to be excluded from the list. |
Examples:
When using functions inside a field, remember the field brackets:
{ListSkip(ClientName, 2)}
Expression | Result |
|---|---|
ListSkip( List("a","b","c"), 1 ) | List("b","c") |
ListSkip( List("a","b","c"), 2 ) | List("c") |
ListSkip( List("Jane", "Mary", "Smith"), 2 ) | List("Smith”) |
ListSkip( List("Jane","Smith"), 2 ) | List( ) |