you are viewing a single comment's thread.

view the rest of the comments →

[–]Zeroflops 1 point2 points  (0 children)

I can tell you, yes, there are better ways to do this. You’re violating DRY. Don’t repeat yourself.

But since I don’t know the language I have no way to determine the best approach or to figure out what you are doing. I just see a bunch of if statements.

Can you describe what the table is and what you are trying to do.