How to use module script?

So in my case, would I put my if statements in the table and then return it?