OK, I've reading myself into circles on how to get if/then/else type statements to work. I thought I had it figured out and pulled my hair out until I got all the pieces worked out. Now I have something, but it's not working,
These are out of order. The trigger is in the middle and the two events are top and bottom. I don't know how to reorder things if there is a way.
What I want:
"Open the gate"
Else: Open Gate.
I intend to do the same thing with a Close Gate command as well.
I don't want to randomly have my gate opening when I think I'm closing it, or vice versa.
Here's what I've come up with but no matter what condition the gate is in, the gate triggers open or closed.
For my open/closed sensor, 0 = closed and 255 = open.
These are out of order. The trigger is in the middle and the two events are top and bottom. I don't know how to reorder things if there is a way.
What I want:
"Open the gate"
If: Gate is open
Then: "Gate is already open", Do nothing.
Then: "Gate is already open", Do nothing.
Else: Open Gate.
I intend to do the same thing with a Close Gate command as well.
I don't want to randomly have my gate opening when I think I'm closing it, or vice versa.
Here's what I've come up with but no matter what condition the gate is in, the gate triggers open or closed.
For my open/closed sensor, 0 = closed and 255 = open.
Comment