Assembly for a Metal Stud wall

Hello

I am trying to develop an assembly that chooses between 20 or 25ga metal studs.  Based on that choice selects the correct item from (2) item tables I developed.  I cannot seem to get the formula logic correct so it points to the correct table, any ideas?

Maybe someone has an assembly for a metal stud wall?

 

Thank You

 

Frank Rich