IF statement in [OP...
 
Notifications
Clear all

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

[Closed] IF statement in [OPTIONS] not working

2 Posts
2 Users
0 Reactions
1,379 Views
(@cswansbury)
New Member Registered
Joined: 5 years ago
Posts: 1
Topic starter  

Hi Everyone

Within the OPTIONS section, I want to put an IF Statement.

This is to enable me to dynamically change the logo if a file exists on the system.

For example, if Office 365 is installed, display an "office365" logo, if not display an "office 2010" logo.

The FILEEXIST is working under the [OPTIONS] section, and displays text saying "Office 365". When I move it to OPTIONS is appears not to work.

[options]
FILEEXIST=interval:5, set:O365check, file:Program FilesMicrosoft OfficerootOffice16winword.exe, hidden:1
IF=value1:%O365check%,value2:-1,comparator:eq
logo=c:testdesktopo365.jpg
IF=value1:%O365check%,value2:0,comparator:eq
logo=c:testdesktopoffice2010.jpg

I cannot get it to work. Does the IF statement only work in the [ITEMS] section?


   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1849
 

FILEEXIST and IF are both display items, not options. Logo is a hangover from earlier versions and will eventually be replaced by a more useful image item.


   
Glenn's Page