Does it matter where I place the “trigger” in a Piston? By way of example, if I have 3 “conditions” and the trigger happens to be the second line, will it be cancelled or not evaluated properly? I would like to design my pistons correctly and I’m not sure if there is an order to the conditions. What is proper?
Trigger placement
E_Sch
#2
If you have only 1 trigger, it does not matter much.
If you have multiple, ‘it depends’, but usually it does not matter much if you understand the piston runs from top to bottom.
It can be beneficial if you access device state repeatedly, to read it to a variable once at the beginning, and not keep re-reading the device state throughout the piston (less overhead).