Session relevance - problem with if then statement

(imported topic written by Leigh91)

Hi,

Trying to use an If Then statement using the contents of one BES property to return another result. For example:

unique values of (if (it contains “Microsoft Office Standard 2007”) then “Office 2007 Std” else “N/A”) of bes property whose (name of it = “Microsoft Office Installed Version”)

Which evaluates as

The Property “Microsoft Office Installed version” exists and returns correct info, using session relevance and a number of difference combinations of relevance with no success.

Any assistance greatly received!

(imported comment written by Lee Wei)

Here is an example for you:

unique values of (if (it contains “Microsoft Office Standard 2007”) then (“Office 2007 Std”) else (“N/A”)) of values of results of bes property whose (name of it = “Microsoft Office Installed Version”)