Exit statement question


#1

1) Give a description of the problem
I want to use an exit action to terminate a running piston. Choosing exit requires me to enter a piston state to exit to. I just want the piston to stop executing and go back to a ready state, I’m not sure what text to enter in the text field for piston state. In the piston I disabled automatic piston state and entered ‘null’ in the required field of the exit action. It seems to work but I want to confirm this setup is ok.

2) What is the expected behavior?
When the exit action executes, the piston will stop and be in a ready state.

3) What is happening/not happening?
It’s working as expected.

**4) Post a Green Snapshot of the piston!
download

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS)


#2

Piston state refers to the message displayed beside the piston name on your dashboard (default is to show true or false). Click the underlined keyword “piston state” to learn more. Any value will work for the exit command but if you do use a custom piston state you would need to specify something meaningful there. You will just see “null” in the dashboard after your piston exits.

Note that you will see a harmless error when the piston exits if the Automatic piston state setting has not been disabled.


#3

Ahhh ok, thanks for that. So is piston state just a variable to be used like any other? Slowly this is all making sense.