Grid bubble on/off

Solved the problem in another post. Please see link below for the code in the python node. Thanks @Lknapton for providing the base of the code (99% of it) and @Nick_Boyts for helping with the IF statement.