I have a piston setup to perform some actions based upon a door opening but I do not want the piston to run if the door opens between 7-8pm on a Sunday. In the below example I setup a fresh piston with the trigger as a button for easy testing. I can’t figure out why it does not work. If I push the button and its not Sunday between 7-8pm, then it should run, but instead its saying false.
Here is my logic:
- Not between 7-8pm? - Current time is 9:22pm = TRUE
- Not Sunday? - Current day is Thursday = TRUE
Instead I think it is reading it this way:
- Only on Sundays… “wait, the current day is Thursday, so no need to check time” = FALSE.
What I want it to do:
- If its not between 7-8pm on a Sunday = proceed (True)
- If it IS between 7-8pm on a Sunday = stop (False)
Is there a way to accomplish what I’m trying to do without having to tell it “Time is (any) only on Mondays, Time is (any) only on Tuesdays…Time is before 7pm on Sundays, Time is after 8pm only on Sundays”