Trigger inside of only when


#1

I have seen several pistons like the following :

Only when Time is between sunrise and sunset
  IF Contact_1 changes to open
   Do stuff

The trigger (yellow lightening bolt) is on the IF. Is this syntax acceptable? Will the piston trigger correctly or should it be written in reverse, such as :

IF Contact_1 changes to open
THEN
  IF Time is between sunrise and sunset
    Do stuff

OR

If Contact_1 changes to open
AND
Time is between sunrise and sunset
  Do Stuff

#2

The only thing you have to worry about is combining a condition with a trigger. The first example leads with a condition and THEN a trigger. In the third example, you’re combining them. Off the top of my head, all the examples should work, but I’m waking up from a night of Adios Motherfuckers at Las Vegas.


#3

:joy::rofl::joy::sweat_smile::joy:

Well then here is a piston for you:

IF wake up CHANGES to HANGOVER
And
IF presence sensor is in Las Vegas
Then 
With MOUTH
Repeat this