If statment relevance

i have this query

(name of it & “–” & size of it as string) of descendants whose (name of it is “Audit.log”) of folder “C:\Program Files (x86)\newfolder”

and im dont know how to do if statement with what i want.

i need to do something like this

if(((name of it & “–” & size of it as string) of descendants whose (name of it is “APPAudit.log”) of folder “C:\Program Files (x86)\CyberArk\ApplicationPasswordProvider\Logs”)=0)then("True)else((name of it & “–” & size of it as string) of descendants whose (name of it is “Audit1.log”) of folder “C:\Program Files (x86)\newfolder1”

i need to check if the first file his size is 0 and if not to check file in another path

This would return true if it exists in either location and has a file size of 0.

if exists files "APPAudit.log" whose(size of it = 0) of folders "C:\Program Files (x86)\CyberArk\ApplicationPasswordProvider\Logs" then "True" else if exists files "APPAudit.log" whose(size of it = 0) of folders "C:\Program Files (x86)\newfolder1" then "True" else "False"

1 Like