Tag Link | [Pair] | Category | Array |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | Pair | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[Pair] creates a new pair from a single name/value parameter. The name and the value can be of any data type.
[Pair: 'Name'='Value']
Required Parameters | |
---|---|
Name/Value Pair | The name and value of the parameter become the first and second elements of the pair. |
To add a pair to a pair array:
Use the [Pair] tag to create a new pair and the [Array->Insert] tag to insert it at the end of an array. The following example adds a new name/value pair to the end of the [Action_Params] pair array.
[Variable: 'theAction'=(Action_Params)]
[Variable: 'newPair'=(Pair: 'First_Name'='John')]
[(Variable: 'theAction')->(Insert: (Variable: 'newPair'))]