Skip to Content
0
Aug 30, 2023 at 04:33 PM

Build Process Automation Control Condition Comparison

131 Views

I have been asked to explore Build Process Automation to develop some proof of concept projects.

I am vaguely familiar with JavaScript, but still learning.

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.

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.

(Steps 7 and 8 are just Log messages so I can see values while debugging)

image.png

Here is the problem: 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).

When I use ==, !==, or ===, and press the Test button, the status shows Green, but whenever I use <, >, <=, or >=, the status shows Red producing an error condition that causes the process to fail.

image.png

Any thoughts, suggestions, or recommendations would be greatly appreciated.

Thanks

Attachments

image.png (51.9 kB)
image.png (37.9 kB)