Tag Link | [Pair->First] | 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 |
[Pair->First] returns the first element of a pair.
The pair data type is usually used within an array to store a sequence of name/value pairs. The [Map->Get] tag also returns elements of type pair.
[Pair->(First)]
No Parameters Required.
To return the first element of a pair:
Use the [Pair->First] tag. The following example returns the first element from a pair [Pair: 'First_Name'='John'].
[Variable: 'thePair'=(Pair: 'First_Name'='John')]
[Output: $thePair->First]
First_Name