LassoScript Utility
Basics Browse Detail


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


[Run_Children] processes the contents of a custom container tag and returns the results. This tag can only be used within a custom tag for which the -Container or -Looping parameter was specified.

If -Looping was specified in the [Define_Tag] then the [Run_Children] tag can be used many times within a custom container tag to implement a looping or repeating tag. If [Run_Children] is used outside of a custom container tag or in a non-container custom tag it will return no result.


[Define_Tag: Tag Name, -Container]

[Define_Tag: Tag Name, -Looping]


No Parameters Required.


To create a custom container tag:

Use the [Define_Tag] ... [/Define_Tag] and [Run_Children] tags. The following example creates a simple container tag [Bold] ... [/Bold] that surrounds its contents with HTML bold <b> ... </b> tags. The [Run_Children] tag returns the contents of the container tag when called.

Note - Container tags must be defined within the Lasso Startup folder. They cannot be defined and then used later in the same format file.

[Define_Tag: 'Bold'][Return: '<b>' + (Run_Children) + '</b>'][/Define_Tag]