<?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=While_Loop_Node_in_Pathways</id>
	<title>While Loop 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=While_Loop_Node_in_Pathways"/>
	<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=While_Loop_Node_in_Pathways&amp;action=history"/>
	<updated>2026-06-22T03:25:42Z</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=While_Loop_Node_in_Pathways&amp;diff=2812&amp;oldid=prev</id>
		<title>Mitchell.Hirsche: Mitchell.Hirsche moved page Documentation for the While Loop Node in Pathways to While Loop Node in Pathways</title>
		<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=While_Loop_Node_in_Pathways&amp;diff=2812&amp;oldid=prev"/>
		<updated>2025-03-05T23:08:35Z</updated>

		<summary type="html">&lt;p&gt;Mitchell.Hirsche moved page &lt;a href=&quot;/wiki/Documentation_for_the_While_Loop_Node_in_Pathways&quot; class=&quot;mw-redirect&quot; title=&quot;Documentation for the While Loop Node in Pathways&quot;&gt;Documentation for the While Loop Node in Pathways&lt;/a&gt; to &lt;a href=&quot;/wiki/While_Loop_Node_in_Pathways&quot; title=&quot;While Loop Node in Pathways&quot;&gt;While Loop 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:08, 5 March 2025&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wiki:diff::1.12:old-2672:rev-2812 --&gt;
&lt;/table&gt;</summary>
		<author><name>Mitchell.Hirsche</name></author>
	</entry>
	<entry>
		<id>https://docs.foji.io/index.php?title=While_Loop_Node_in_Pathways&amp;diff=2672&amp;oldid=prev</id>
		<title>Mitchell.Hirsche: While Loop Node</title>
		<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=While_Loop_Node_in_Pathways&amp;diff=2672&amp;oldid=prev"/>
		<updated>2025-03-05T00:19:22Z</updated>

		<summary type="html">&lt;p&gt;While Loop Node&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;While Loop&amp;#039;&amp;#039;&amp;#039; node in Pathways is used to repeatedly execute a sequence of tasks while a specified condition remains true. This is particularly useful for iterative processes or workflows that require continuous execution until a logical condition is no longer satisfied.&lt;br /&gt;
----&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;
#* &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;: A descriptive label for the While Loop node to easily identify its purpose in the workflow.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Input&amp;#039;&amp;#039;&amp;#039;: Text field.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&amp;#039;: &amp;quot;Validate Data Input Loop&amp;quot;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Condition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;: The logical condition that determines whether the loop continues to execute. The loop will run as long as this condition evaluates to true.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Input Type&amp;#039;&amp;#039;&amp;#039;: Dropdown with two options for defining the condition:&lt;br /&gt;
#** &amp;#039;&amp;#039;&amp;#039;Script&amp;#039;&amp;#039;&amp;#039;: Allows the user to define a condition using custom script logic for complex evaluations.&lt;br /&gt;
#** &amp;#039;&amp;#039;&amp;#039;Handlebars Template&amp;#039;&amp;#039;&amp;#039;: Enables the use of Handlebars expressions for simple, template-driven logic.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Required&amp;#039;&amp;#039;&amp;#039;: Yes.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
#** Script: data.value &amp;lt; 100&lt;br /&gt;
#** Handlebars Template: &amp;lt;nowiki&amp;gt;{{data.isValid}}&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;How It Works&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* The node evaluates the &amp;#039;&amp;#039;&amp;#039;Condition&amp;#039;&amp;#039;&amp;#039; before every iteration.&lt;br /&gt;
* If the condition is true:&lt;br /&gt;
** Executes the sequence of tasks defined in the loop.&lt;br /&gt;
** Rechecks the condition after execution.&lt;br /&gt;
* If the condition is false:&lt;br /&gt;
** The loop stops, and the workflow continues to the next step.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;Practical Example&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
Suppose you want to monitor a data stream until a specific value exceeds a threshold:&lt;br /&gt;
&lt;br /&gt;
# Configure the &amp;#039;&amp;#039;&amp;#039;Condition&amp;#039;&amp;#039;&amp;#039; as data.temperature &amp;lt; 75.&lt;br /&gt;
# Inside the loop, define tasks such as logging the current temperature and sending alerts if required.&lt;br /&gt;
# Once the temperature reaches 75 or higher, the loop stops, and the workflow proceeds.&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;
* Ensure the condition is well-defined to avoid infinite loops.&lt;br /&gt;
* Use appropriate error handling or exit strategies if the condition might result in extended iterations.&lt;br /&gt;
* Combine with nodes like &amp;#039;&amp;#039;&amp;#039;Break&amp;#039;&amp;#039;&amp;#039; to programmatically exit the loop under specific scenarios.&lt;br /&gt;
&lt;br /&gt;
----This node is a flexible tool to add iterative functionality to your Pathways workflow, enabling dynamic and responsive execution paths.&lt;br /&gt;
[[Category:ForgeAI]]&lt;br /&gt;
[[Category:Pathways]]&lt;/div&gt;</summary>
		<author><name>Mitchell.Hirsche</name></author>
	</entry>
</feed>