Help please - The operator "version" is not defined.

Hi Team,
Can someone please help with the below logic?

Q: ((exists regapp “chrome.exe”) OR (exists file “C:\Program Files\Google\Chrome\Application\chrome.exe”) OR (exists file “C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe”)) whose (version of it < “121.0.6167.15”)
E: The operator “version” is not defined.

The bit before the ‘whose’ evaluates to a boolean and there is no version property for a boolean

One way you can maybe check for any of 3 possible resources would be something like

Q: exists ((regapps "chrome.exe") ; (files "C:\Program Files\Google\Chrome\Application\chrome.exe") ; (files "C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe")) whose (version of it < "121.0.6167.15")
A: True
T: 1.906 ms
I: singular boolean
4 Likes

Try…

((version of it) as version < “blah.blah.blah” as version)

this seemed to work, thank you!

This is the way. The trick is to make it so that a single exists encompasses all possibilities, and that the version of it filters based on all of the possible returned objects.