<?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>Question Re: Build Process Automation Control Condition Comparison in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/build-process-automation-control-condition-comparison/qaa-p/12790517#M4802173</link>
    <description>&lt;P&gt;I worked around the issue by moving the comparison out of the Condition into a Custom Script that set a flag.&lt;/P&gt;&lt;P&gt;I then changed the Condition to compare the flag == "X", which evaluated to True or False.&lt;/P&gt;&lt;P&gt;Not sure why I had to do that since the tutorial examples showed I could compare numeric values to some limit (e.g., Step5.total &amp;lt; 1000), which would evaluate to True or False.&lt;/P&gt;&lt;P&gt;Curious why my comparison of two variables was invalid (Step6.returnedValues &amp;lt; Step2.deletionDate) when the comparison of a value with a literal is valid.&lt;/P&gt;&lt;P&gt;Thanks anyway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 18:12:05 GMT</pubDate>
    <dc:creator>bryan_sippel3</dc:creator>
    <dc:date>2023-08-30T18:12:05Z</dc:date>
    <item>
      <title>Build Process Automation Control Condition Comparison</title>
      <link>https://community.sap.com/t5/technology-q-a/build-process-automation-control-condition-comparison/qaq-p/12790516</link>
      <description>&lt;P&gt;I have been asked to explore Build Process Automation to develop some proof of concept projects.&lt;/P&gt;
  &lt;P&gt;I am vaguely familiar with JavaScript, but still learning.&lt;/P&gt;
  &lt;P&gt;My initial test is using agent version 3.16 and is intended to delete files from a file server folder older than a specified date.&lt;/P&gt;
  &lt;P&gt;I am using Get File Collection to retrieve the files, For Each to loop through each one, and Get Information to examine the last modified date/time (mtime) for comparison against my as-of deletion date.&lt;/P&gt;
  &lt;P&gt;(Steps 7 and 8 are just Log messages so I can see values while debugging)&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205559-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Here is the problem: &lt;/STRONG&gt;In order to only delete older files and skip newer files, I am trying to use the Condition control with this comparison (as recommended by one of the tutorials I reviewed).&lt;/P&gt;
  &lt;P&gt;When I use ==, !==, or ===, and press the Test button, the status shows Green, but whenever I use &amp;lt;, &amp;gt;, &amp;lt;=, or &amp;gt;=, the status shows Red producing an error condition that causes the process to fail.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205560-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Any thoughts, suggestions, or recommendations would be greatly appreciated.&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 16:33:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/build-process-automation-control-condition-comparison/qaq-p/12790516</guid>
      <dc:creator>bryan_sippel3</dc:creator>
      <dc:date>2023-08-30T16:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Build Process Automation Control Condition Comparison</title>
      <link>https://community.sap.com/t5/technology-q-a/build-process-automation-control-condition-comparison/qaa-p/12790517#M4802173</link>
      <description>&lt;P&gt;I worked around the issue by moving the comparison out of the Condition into a Custom Script that set a flag.&lt;/P&gt;&lt;P&gt;I then changed the Condition to compare the flag == "X", which evaluated to True or False.&lt;/P&gt;&lt;P&gt;Not sure why I had to do that since the tutorial examples showed I could compare numeric values to some limit (e.g., Step5.total &amp;lt; 1000), which would evaluate to True or False.&lt;/P&gt;&lt;P&gt;Curious why my comparison of two variables was invalid (Step6.returnedValues &amp;lt; Step2.deletionDate) when the comparison of a value with a literal is valid.&lt;/P&gt;&lt;P&gt;Thanks anyway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 18:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/build-process-automation-control-condition-comparison/qaa-p/12790517#M4802173</guid>
      <dc:creator>bryan_sippel3</dc:creator>
      <dc:date>2023-08-30T18:12:05Z</dc:date>
    </item>
  </channel>
</rss>

