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

1 Posts
1 Users
1 Reactions
1,305 Views
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1811
Topic starter  

IF
IF is used to make decisions on whether to evaluate and show items. There are now several IF options:

* The familiar IF item which controls the active status of one or more of the following items.

IF=value1:x, comp:x, value2:x, true:x, false:x, eval:x
  activates or deactivates one or more following items according to the result of IF evaluation
  evaluated during normal operation every cycle

* The new BEGIN-IF block which basically does the same thing but makes a lot more sense for many people and is visually easier to understand.

BEGIN-IF=value1:x, comp:x, value2:x

...

END-IF
  activates or deactivates the enclosed items according to the result of IF evaluation
  evaluated during normal operation every cycle

IF evaluation is also available in the BEGIN-ONLOAD block, the BEGIN-GLOBAL block and the upcoming OPTIONS item. All use a common IF evaluation. For a single item, the IF evaluation is easiest. For multiple items, the BEGIN-IF block is better.


   
Quote
Glenn's Page