I have a piston that behaves differently based on the number of devices stored in a device variable. It wasn't behaving as expected so I made a "dummy" piston to run some experiments on the logic.
Turns out, the issue is a clear variable (or one set to 'nothing selected' or "") all result in a count of 1. I've tried everything I can think of to get this to work, but keep coming up blank. Appreciate any help (or other thoughts)
The images below behaves as expected when one or more devices are stored to it:
But when there aren't devices stored, the results become... unusable to base logic upon...
?????
Using a piston to set to "nothing selected" has some different appearance, but same end results: