Whitelist for egomooses gravity controller

I want all parts except parts named grav-part have the gravity controller off (this is for wall stick controller). I need this because I want only a few parts in my game to have gravity controller on. It would take too long to blacklist everything amd having a whitelist would make it so much simpler.

The problem is I do not understand any of the code (I am new to scripting)

I have tried putting if then statements in random spots but it does not seem to help. I have tried asking egomoose but he did not respond.

I need the code for the whitelist and I need to know where to put it.