Lasso Soft Inc. > Home

[Pair->Value]

[Pair->Value] returns the second 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->(Value)]
Required Parameters
Pair The pair whose element should be returned.
Examples

To return the second element of a pair:

Use the [Pair->Value] tag. The following example returns the second element from a pair [Pair: 'First_Name'='John'].

[Variable: 'thePair'=(Pair: 'First_Name'='John')]
[Output: $thePair->Value]
Result:
John
Tag Link [Pair->Value] Category Array
Type Member Data Source Any
Support Synonym Version 5.0
Output Type Any Security None
Implementation Internal Sets Lasso 6.0, 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