Jump to content

Simple programming if statement


Mike1980

Recommended Posts

I'm using a switch to turn on several switches. Here's the problem, in the if statement, it shows percent on level for my trigger. How do I control it if I don't care what level on %, just anytime the button is turned on?

 

can you post a copy of your program

Link to comment

I'm using a switch to turn on several switches. Here's the problem, in the if statement, it shows percent on level for my trigger. How do I control it if I don't care what level on %, just anytime the button is turned on?

Use "switched" instead of "status"

 

If "status" is actually wanted then use "Not Off" or "> 0"

 

 

If one SwitchLinc is used to control light2 with Status,

and then light2  is turned off, but then wanted back on from the first SwitchLinc, "status" will not operate the second switch via a program.

 

"Switched" will trigger a program every time the switch paddle is operated.

"Status" will trigger a program only when the switch turns on the light.

 

 

Note: Earlier than v5.x ISY versions use

Control switchlinc is switched 'On'

 

while v5.+ uses

switchlinc is switched 'On'

 

The 'control' word may be disappearing.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...