SetVarFromListMerge: combine list entries into variables

Tag: SetVarFromListMerge

The SetVarFromListMerge function concatenates a list of SetVar into a single variable.

Tag Attributes

Attributes

Value Description

ListName

Target list name

Separator

Text to use as delimiter of the list entries - Optional.

It can be empty or omitted: the entries are then concatenated without delimiter.


Example Scripts

<SetVarFromListMerge ListName="listFromMerge" Separator=":"/>
<ytriaAutomation Application='sapio365' Title='TEST - ISSUE ERROR LOOP EXECUTE' TargetModule='Users'>
	<List Name="listFromMerge" Action="SetVar" var3="blue" var4="42"/>
	<List Name="listFromMerge" Action="SetVar" var3="green" var4=""/>
	<List Name="listFromMerge" Action="SetVar" var3="red" var4="666"/>
	<List Name="listFromMerge" Action="SetVar" var3="yellow"/>
	<SetVarFromListMerge ListName="listFromMerge" Separator=":"/>
	<Echo Value="=====> var3={%var3%}"/>
	<Echo Value="=====> var4={%var4%}"/>
</ytriaAutomation>