Tag: Rename

The Rename action allows you to automatically rename a list.


<Rename ListName="oldName" name="newName"/>
XML

Tag Attributes

AttributesValue Description
ListNameAny string to ID the list - Required
NameRegular action name - Required

If ListName and Name are identical (case insensitive), nothing happens and a warning is issued.

Example Script

<ytriaAutomation>
	<List Name="oldName" Action="SetVar" var4="42"/>
	<List Name="oldName" Action="SetVar" var4=""/>
	<List Name="oldName" Action="SetVar" var4="666"/>
	<Rename ListName="oldName" name="newName"/>
	<Loop list="newName">
		<ExecuteListAction/>
		<Echo value="======> var4={%var4%}"/>
	</Loop>
</ytriaAutomation>
XML