Relevance for checking a file for a string

I have started the following relevance, and I am just unsure why it is not parsing in debugger. Forgive me, it’s been a long week and I am just not seeing the issue:

q: if (exists file whose (name of it starts with “SMS_”) of folder “C:\Program Files\Zebra Technologies\Barcode Scanners\SMS\Download\Logs”) AND contains substring “model=DS9308”
E: This expression could not be parsed.

I know it’s probably a syntax issue, just not seeing it at the moment…

Also tried this:

q: exists files whose (name of it starts with “SMS_” AND exists lines whose(it contains “model=DS9308”) of it) of folder “C:\Program Files\Zebra Technologies\Barcode Scanners\SMS\Download\Logs”
E: Singular expression refers to nonexistent object.

This actually did work in the console. Sorry for the unnecessary post.

Hi @ryanehelder, if you make the “folder” plural, as in “folders”, you can alleviate this error and get a boolean value for all conditions:

Q: exists files whose (name of it starts with "SMS_" AND exists lines whose(it contains "model=DS9308") of it) of folder "C:\Program Files\Zebra Technologies\Barcode Scanners\SMS\Download\Logs"
E: Singular expression refers to nonexistent object.

Q: exists files whose (name of it starts with "SMS_" AND exists lines whose(it contains "model=DS9308") of it) of folders "C:\Program Files\Zebra Technologies\Barcode Scanners\SMS\Download\Logs"
A: False
T: 16.531 ms
I: singular boolean