IF statement in [OP...
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

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.

IF statement in [OPTIONS] not working

2 Posts
2 Users
0 Reactions
349 Views
(@cswansbury)
New Member Registered
Joined: 4 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?


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1501
 

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.


   
ReplyQuote
Glenn's Page