LassoScript Utility
Basics Browse Detail

-> Member

Tag Link -> Member Category Symbol
Type Symbol 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

Description

-> calls a member tag of a data type. It can be used to call both built-in member tags for the default data types or custom member tags defined for third-party data types.

The tag specified by the right parameter is evaluated on the value specified by the left parameter. The tag must be a valid member tag for the data type of the left parameter.

Syntax

[Left_Parameter->Right_Parameter]

[(Left_Parameter)->(Right_Parameter)]

<?LassoScript
Left_Parameter->Right_Parameter;
?>

<?LassoScript
(Left_Parameter)->(Right_Parameter);
?>

Parameters

Required Parameters
Left_Parameter The name of a variable which contains the value whose member tag should be called or a literal value.
Right_Parameter The member tag which is to be called.

Examples

To call a member tag:

Use the member symbol -> with the name of the tag that should be called. The following example uses the member symbol twice. The first time it is used to call the [Array->Size] member tag to specify how many times the [Loop] ... [/Loop] tags will loop. The second time it is used to call the [Array->Get] member tag each time through the loop.

[Variable: 'MyArray'=(Array: 1, 'Two', 3.0)]
[Loop: $MyArray->Size]
  [Output: $MyArray->(Get: Loop_Count)]
[/Loop]

1 Two 3.000000