LassoScript Utility
Basics Browse Detail


Tag Link [Self] Category Custom Tag
Type Substitution Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type Any Security Tag
Implementation Internal Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0


[Self] can be used within member tags of a custom type to reference other member tags or instance variables of the type.

This tag is often used to get the current type using [Self->Type] or to get a reference to the parent type of the current type using [Self->Up].






No Parameters Required.


To get the type within a member tag:

Use the [Self] tag with the [Null->Type] tag. The following code performs one action if the type is 'MyInteger' and a different action if the type is 'MyDecimal'.

[Define_Tag: 'MyFormat']
  [If: (Self)->(Type) == 'MyDecimal']
  [Else: (Self)->(Type) == 'MyInteger']