Tag Link | [Array->Last] | Category | Array |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | Any | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[Array->Last] returns the last item in the array.
Note: Use [Array->Size] to return the index of the last element of the array.
[Array->(Last)]
No Parameters Required.
To return the last element of an array:
Use the [Array->Last] tag. The following example returns the last element of an array of the days of the week.
[Variable: 'DaysOfWeek'=(Array:'Sun','Mon','Tue','Wed','Thu','Fri','Sat')]
[Output: $DaysOfWeek->(Last)]
Sat