Combining two like Pistons


#1

1) Give a description of the problem
(I have two pistons and would like to make it one)

2) What is the expected behavior?
(Try to combine these two Pistons to lighten the load)

3) What is happening/not happening?
(PUT YOUR INFO HERE)

4) Post a Green Snapshot of the pistonimage

The only difference between the two is the Months that the Piston will run.


#2

You could just create the same if below the first one.

You also have an extra IF then statement around your action. There isn’t a need for this.

If you wanted to break it down to a single IF contact is xxx then add both actions but put restrictions on them.


#3

Is this better?


#4

This will work. But you do not need to have the second IF inside the first IF’s else statement. It can be it’s own if.

Give this a try

If contact does whatever you have
Then
Only when months are 1,2,3,4,5,6
With your speaker
Speak your text
End with
Only when months are 7,8,9,10,11,12
With your speaker
Speak your text
End with
End if


#5

The new one I sent will work as is correct? But it isn’t correct in form correct?


#6

It should work. To be safe either pull the IF out of the else or go full bore and try to set it up like I wrote out


#7

How do I pull the if without erasing my Piston?


#8

Are you editing with a computer?

At the top click the up/down arrows. This will put similar icons in the gutter next to all the statements. You can click and drag the IF out


#9

Is this correct now?![


#10

So close, drag it completely below the end if of the first IF statement


#11

I must be doing something wrong as I try to drag the 'IF" but nothing is happening. I think I am lost.


#12

Nothing wrong. The same way you moved the statement from the else. It’s easier to grab the triangles and then drag them by the words. Just drag it below the end if


#13

Just will not move no matter what I try. I select the IF and by the arrows but it won’t move.


#14

I have been on mobile and just got home. Here is what I had outlined earlier.
Restore this and input your devices and you will be set!


#15

Thank you, I will test this out, at least for the first statement.