What is happening is your piston has no triggers.
By default, in a piston with no triggers, webcore promotes conditions to triggers.
Your condition is @TestInt, ie every time the global value changes you are getting an event.
pausing the piston in the IDE will stop it...
See:
I'll check if treating the switch as a condition is correct, so far it looks correct as that could have been a device:attribute value
you can adjust the piston setting for subscriptions to set to never so it does not subscribe to anything.
I think you could also create a local integer variable i
set variable {i} = @TestInt
switch (i)
1 Like