<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.foji.io/index.php?action=history&amp;feed=atom&amp;title=Set_Variable_Node_in_Pathways</id>
	<title>Set Variable Node in Pathways - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.foji.io/index.php?action=history&amp;feed=atom&amp;title=Set_Variable_Node_in_Pathways"/>
	<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=Set_Variable_Node_in_Pathways&amp;action=history"/>
	<updated>2026-06-22T03:25:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://docs.foji.io/index.php?title=Set_Variable_Node_in_Pathways&amp;diff=2853&amp;oldid=prev</id>
		<title>Mitchell.Hirsche: Mitchell.Hirsche moved page Documentation: Set Variable Node in Pathways to Set Variable Node in Pathways</title>
		<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=Set_Variable_Node_in_Pathways&amp;diff=2853&amp;oldid=prev"/>
		<updated>2025-03-05T23:10:28Z</updated>

		<summary type="html">&lt;p&gt;Mitchell.Hirsche moved page &lt;a href=&quot;/wiki/Documentation:_Set_Variable_Node_in_Pathways&quot; class=&quot;mw-redirect&quot; title=&quot;Documentation: Set Variable Node in Pathways&quot;&gt;Documentation: Set Variable Node in Pathways&lt;/a&gt; to &lt;a href=&quot;/wiki/Set_Variable_Node_in_Pathways&quot; title=&quot;Set Variable Node in Pathways&quot;&gt;Set Variable Node in Pathways&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:10, 5 March 2025&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wiki:diff::1.12:old-2668:rev-2853 --&gt;
&lt;/table&gt;</summary>
		<author><name>Mitchell.Hirsche</name></author>
	</entry>
	<entry>
		<id>https://docs.foji.io/index.php?title=Set_Variable_Node_in_Pathways&amp;diff=2668&amp;oldid=prev</id>
		<title>Mitchell.Hirsche: Variable</title>
		<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=Set_Variable_Node_in_Pathways&amp;diff=2668&amp;oldid=prev"/>
		<updated>2025-03-05T00:13:15Z</updated>

		<summary type="html">&lt;p&gt;Variable&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Set Variable&amp;#039;&amp;#039;&amp;#039; node is used to define or modify variables within a Pathways workflow by using expressions.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;Configuration Options:&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Name&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
#* Provide a unique name for the node to identify it in the workflow.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Variable Name&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
#* Specify the name of the variable you wish to set or modify.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Expression&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
#* Enter the expression to calculate or assign the value to the variable.&lt;br /&gt;
#* You can select the &amp;#039;&amp;#039;&amp;#039;Type&amp;#039;&amp;#039;&amp;#039; for the expression:&lt;br /&gt;
#** &amp;#039;&amp;#039;&amp;#039;Script&amp;#039;&amp;#039;&amp;#039;: Use custom scripting for advanced logic.&lt;br /&gt;
#** &amp;#039;&amp;#039;&amp;#039;Handlebars Template&amp;#039;&amp;#039;&amp;#039;: Use templating for dynamic content generation.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Object Handling&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
#* Choose how the variable should handle object data:&lt;br /&gt;
#** &amp;#039;&amp;#039;&amp;#039;Replace&amp;#039;&amp;#039;&amp;#039;: Overwrite the existing object with the new value.&lt;br /&gt;
#** &amp;#039;&amp;#039;&amp;#039;Merge Values&amp;#039;&amp;#039;&amp;#039;: Merge the new data with the existing object, combining their properties.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;Usage Example:&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
Set a variable totalPrice using a &amp;#039;&amp;#039;&amp;#039;Handlebars Template&amp;#039;&amp;#039;&amp;#039; to calculate the value dynamically:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{product.price * product.quantity}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the &amp;#039;&amp;#039;&amp;#039;Script&amp;#039;&amp;#039;&amp;#039; option for more complex logic:&lt;br /&gt;
&lt;br /&gt;
if (customer.isPremium) {&lt;br /&gt;
&lt;br /&gt;
 totalPrice = basePrice * 0.9; // Apply discount&lt;br /&gt;
&lt;br /&gt;
} else {&lt;br /&gt;
&lt;br /&gt;
 totalPrice = basePrice;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;Notes:&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* This node is essential for creating dynamic workflows where variable values change based on user input, external data, or logical conditions.&lt;br /&gt;
* Combining the &amp;quot;Set Variable&amp;quot; node with other nodes like &amp;#039;&amp;#039;&amp;#039;If&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Parallel&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;Loops&amp;#039;&amp;#039;&amp;#039; allows for greater control over workflow logic.&lt;br /&gt;
&lt;br /&gt;
By utilizing this node effectively, you can create workflows that are both dynamic and adaptable to various scenarios.&lt;br /&gt;
[[Category:ForgeAI]]&lt;br /&gt;
[[Category:Pathways]]&lt;/div&gt;</summary>
		<author><name>Mitchell.Hirsche</name></author>
	</entry>
</feed>