Forum:Need help with conditionals and tables

I want http://shaiya.wikia.com/wiki/User:Nicolasjager/List_of_Weapons/Simple which calls on http://shaiya.wikia.com/wiki/User:Nicolasjager/Template:Weapon/Simple to collapse, and omit a row to which there are no entries. So, in this case, the following rows would be omitted, and the remaining rows would move up to take their place:

Rows corresponding to: 0 slot dex 0 slot luc 1 slot str 1 slot wis 1 slot dex 1 slot luc 2 slot rec 2 slot int 2 slot wis 2 slot dex 2 slot luc ... and so on all of 5 slot 6 slot rec 6 slot wis 6 slot luc would be omitted.

How would I write the conditionals for http://shaiya.wikia.com/wiki/User:Nicolasjager/Template:Weapon/Simple to do this? Nicolasjager 05:54, 7 April 2008 (UTC)