Multiple Checkbox for disabling sensors

So… I made a sensor test application, and I added a FAB (Floating Action Button) to be able to turn off and re-enable the sensor, the goal is to avoid lag when a new application is launched on an old device, now if the FAB is pressed for a long time it will be able to deactivate a certain sensor, if all checkboxes are checked then the sensor will turn off, but if one is selected then the selected sensor will turn off, but when I try to make it, it doesn’t work if I only select a few sensors, if I select all of them it works, can anyone help?
Blocks :

Video :
ScreenRecord_01011970_000000

Use the contains block

If contains selection 1
Then disable sensor 1
If contains selection 2
Then disable sensor 2
Etc

Taifun

Thank you it work!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.