How to hide/show a strip based on database entries?

I see some things that need to improve in your code, can you send it to my email bwprado@gmail.com?

Thanks