Tag: SplitListsIntoSetVar

The SplitListsIntoSetVar function generates a list of SetVar from text values.

<SplitIntoSetVarList ListName="listFromSplit" separator=":" var1="blue:red:yellow" var2="42:666"/>
XML

Tag Attributes

AttributesAttribute ValueValue Description
ListNameN/ATarget list name
SeparatorN/ANon-empty text to use as delimiter of the list entries - Required


Example Text

<ytriaAutomation>
	<SplitIntoSetVarList ListName="listFromSplit" separator=":" var1="blue:red:yellow" var2="42:666"/>
	<Loop list="listFromSplit">
		<ExecuteListAction/>
		<Echo value="======> var1={%var1%} var2={%var2%}"/>
	</Loop>
</ytriaAutomation>
XML

Tag: SetVarFromListMerge

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


<SetVarFromListMerge ListName="litsFromMerge" separator=":"/>
XML

Tag Atttributes

AttributesValue Description
ListNameTarget list name
SeparatorNon-empty text to use as delimiter of the list entries - Optional

Example Script

<ytriaAutomation application='sapio365' title='TEST - ISSUE ERROR LOOP EXECUTE' targetmodule='Users'>
	<List Name="litsFromMerge" Action="SetVar" var3="blue" var4="42"/>
	<List Name="litsFromMerge" Action="SetVar" var3="green" var4=""/>
	<List Name="litsFromMerge" Action="SetVar" var3="red" var4="666"/>
	<List Name="litsFromMerge" Action="SetVar" var3="yellow"/>
	<SetVarFromListMerge ListName="litsFromMerge" separator=":"/>
	<Echo value="=====> var3={%var3%}"/>
	<Echo value="=====> var4={%var4%}"/>
</ytriaAutomation>
XML