Most of us are familiar with setting the state of a piston…
Is it possible to read [or assign to a var] the state of the current piston or read the state of another piston?
A textual example:
- read state of current piston (and eg do something)
- set state to something
- wait
- loop
Note: I do not want to keep track via a var or other means; I want to read the state real-time if possible.
If so, an example will be appreciated.
Thanks
J