Tag Link | [Pair->Name] | Category | Array |
---|---|---|---|
Type | Member | Source Available | No |
Support | Synonym | 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->Name] 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->(Name)]
No Parameters Required.
To return the first element of a pair:
Use the [Pair->Name] tag. The following example returns the first element from a pair [Pair: 'First_Name'='John'].
[Variable: 'thePair'=(Pair: 'First_Name'='John')]
[Output: $thePair->Name]
First_Name