<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic While True Condigtional in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/while-true-condigtional/m-p/1241929#M4195</link>
    <description>&lt;P&gt;Hello Everyone,&lt;BR /&gt;I want to ask about the while loop condition in XSOAR, is it possible to do that? for example i want to check condition the agent status to see whether it is connected or not, if it is not connected set 10minutes delay and then check the condition again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Sun, 16 Nov 2025 14:15:37 GMT</pubDate>
    <dc:creator>G.Anshar</dc:creator>
    <dc:date>2025-11-16T14:15:37Z</dc:date>
    <item>
      <title>While True Condigtional</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/while-true-condigtional/m-p/1241929#M4195</link>
      <description>&lt;P&gt;Hello Everyone,&lt;BR /&gt;I want to ask about the while loop condition in XSOAR, is it possible to do that? for example i want to check condition the agent status to see whether it is connected or not, if it is not connected set 10minutes delay and then check the condition again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Nov 2025 14:15:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/while-true-condigtional/m-p/1241929#M4195</guid>
      <dc:creator>G.Anshar</dc:creator>
      <dc:date>2025-11-16T14:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: While True Condigtional</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/while-true-condigtional/m-p/1244702#M4217</link>
      <description>&lt;P&gt;Loop condition is indeed an option!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can achieve it by 2 examples:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Wrap your task in a sub-playbook and use the built-in Loop mechanism to rerun the playbook using Loop automation.&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Use custom task (Script) in python that gets the data via argument and runs the while True loop with all the logic you need&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;personally - option 2 is preferred, much more simple to create and test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Sun, 28 Dec 2025 07:37:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/while-true-condigtional/m-p/1244702#M4217</guid>
      <dc:creator>ofmoalem</dc:creator>
      <dc:date>2025-12-28T07:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: While True Condigtional</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/while-true-condigtional/m-p/1244923#M4221</link>
      <description>&lt;P&gt;Thanks for your answer&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/164550431"&gt;@ofmoalem&lt;/a&gt;&amp;nbsp;, I used technique no 2, but I got this error&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Error from Scripts is : Script failed to run: 
Timeout Error: Docker code script failed due to timeout (exampleScript). Consider changing timeout value for this automation. (2604) (2603)&lt;/LI-CODE&gt;
&lt;P&gt;to resolved this issue I increased the timeout and the number of retries but I don't think this is same as we used to while True condition&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 04:53:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/while-true-condigtional/m-p/1244923#M4221</guid>
      <dc:creator>G.Anshar</dc:creator>
      <dc:date>2026-01-06T04:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: While True Condigtional</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/while-true-condigtional/m-p/1246987#M4234</link>
      <description>&lt;P&gt;Well, this&amp;nbsp; &amp;nbsp;is because you try to implement the wrong logic into automation script which meant to be one time flow and not endless recursive loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in case where the waiting time is not consistent and&amp;nbsp; &amp;nbsp;not static - Schedule Commands decorators are you friends-to-go.&lt;/P&gt;
&lt;P&gt;XSOAR features option that built exactly for that use case - unknown number of loops needed.&lt;/P&gt;
&lt;P&gt;regular tasks within playbook running via workers, but schedule commands do not run via workers, which means they are not limited by time - they are limited BY RESULTS.&lt;/P&gt;
&lt;P&gt;schedule tasks give you the option to run the loop over and over until you get the output you wish for via code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can read more about it via offical docs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://xsoar.pan.dev/docs/integrations/scheduled-commands" target="_blank"&gt;Scheduled Commands | Cortex XSOAR&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the last example there is a great baseline for your use case!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best of luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://xsoar.pan.dev/docs/integrations/scheduled-commands" target="_blank"&gt;Scheduled Commands | Cortex XSOAR&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 08:10:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/while-true-condigtional/m-p/1246987#M4234</guid>
      <dc:creator>ofmoalem</dc:creator>
      <dc:date>2026-01-29T08:10:40Z</dc:date>
    </item>
  </channel>
</rss>

