Lasso Soft Inc. > Home

[Pair->Name]

[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.

  • Syntax
  • Parameters
[Pair->(Name)]
Required Parameters
Pair The pair whose element should be returned.
Examples

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]
Result:
First_Name
Tag Link [Pair->Name] Category Array
Type Member Data Source Any
Support Synonym Version 5.0
Output Type Any Security None
Implementation Sets Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft