Tag: ExecuteVar

The action ExecuteVar executes the XML content from a variable.


<ExecuteVar value="{%MuhXML%}" name="My menu in a variable"/>
<ExecuteVar value="{%MuhXML2%}" name="My menu in another variable"/>
XML

Tag Attributes

AttributesAttribute ValuesValue Description
ValueN/ARequired
NameN/AOptional


Use a variable to store the XML that will be executed and then set that variable as the value parameter of the ExecuteVar action.

Setting the Setvar paramter BypassVar to true stores the raw value of the XML

Example Script

<ytriaAutomation Console="true">
	<SetVar frites="FRITES"/>
		<SetVar MuhXML="USE_CDATA" BypassVar="true">
			<![CDATA[ <SetVar Manger="saucisson"/>
			<Echo value="Manger {%Manger%} + {%frites%}!"/>]]>
		</SetVar>
		<SetVar MuhXML2="USE_CDATA">
			<![CDATA[ <SetVar Manger="munster"/>
			<Echo value="Manger {%Manger%} + {%frites%}!"/>]]>
		</SetVar>
		<ExecuteVar value="{%MuhXML%}" name="My menu in a variable"/>
		<ExecuteVar value="{%MuhXML2%}" name="My menu in another variable"/>
</ytriaAutomation>
XML