Optimize Relevance?

(imported topic written by choro)

Hello all,

I know I’ve seen this before but cannot recall the character to use.

I’m writing relevance as following and would like to optimize the code as not to repeat the statement over and over again for each version I’m looking for. (I’m looking for specific versions)

exists file “C:\Program Files\Software\MINE\MINE_File.exe” whose (version of it = “5.3.2.0”) OR exists file “C:\Program Files\Software\MINE\MINE_File.exe” whose (version of it = “5.1.2.0”) … etc.

I would like to use something like this:

exists file “C:\Program Files\Software\MINE\MINE_File.exe” whose (version of it = “5.3.2.0”;“5.1.2.0”;“7.4.0”)

Is this possible or was I dreaming? (the ; doesn’t work) :slight_smile:

(imported comment written by SystemAdmin)

There’s a couple ways to do that.

exists file “C:\Program Files\Software\MINE\MINE_File.exe” whose (version of it = “5.3.2.0” or version of it = “5.1.2.0” or version of it = “7.4.0”)

exists file “C:\Program Files\Software\MINE\MINE_File.exe” whose (set of “5.3.2.0”;“5.1.2.0”;“7.4.0”) contains (version of it as string))

-Paul