monsefoster
New Member
- Joined
- Oct 29, 2013
- Messages
- 40
Hi, I was wondering if it's possible to ask the user a number (I know how to do this) and then, beginning with let's say G column, looping over each column depending on the number the user entered?
Example:
User Input = 4
[TABLE="width: 500"]
<tbody>[TR]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]Item_G1[/TD]
[TD]Item_H1[/TD]
[TD]Item_I1[/TD]
[TD]Item_J1[/TD]
[TD]Item_...n1[/TD]
[/TR]
[TR]
[TD]Item_G2[/TD]
[TD]Item_H2[/TD]
[TD]Item_I2[/TD]
[TD]Item_J2[/TD]
[TD]Item_...n2[/TD]
[/TR]
[TR]
[TD]Item_G3[/TD]
[TD]Item_H3[/TD]
[TD]Item_I3[/TD]
[TD]Item_J3[/TD]
[TD]Item_...n3[/TD]
[/TR]
[TR]
[TD]Item_G4[/TD]
[TD]Item_H4[/TD]
[TD]Item_I4[/TD]
[TD]Item_J4[/TD]
[TD]Item_...n4[/TD]
[/TR]
</tbody>[/TABLE]
Meaning, Input a number and then depending on the number looping also on that letter+the number of letters. So, After it's done with all the G's items looping over the H's items, and so on... N numbers could be the input. I saw something similar a while back but now I can't find it
Example:
User Input = 4
[TABLE="width: 500"]
<tbody>[TR]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]Item_G1[/TD]
[TD]Item_H1[/TD]
[TD]Item_I1[/TD]
[TD]Item_J1[/TD]
[TD]Item_...n1[/TD]
[/TR]
[TR]
[TD]Item_G2[/TD]
[TD]Item_H2[/TD]
[TD]Item_I2[/TD]
[TD]Item_J2[/TD]
[TD]Item_...n2[/TD]
[/TR]
[TR]
[TD]Item_G3[/TD]
[TD]Item_H3[/TD]
[TD]Item_I3[/TD]
[TD]Item_J3[/TD]
[TD]Item_...n3[/TD]
[/TR]
[TR]
[TD]Item_G4[/TD]
[TD]Item_H4[/TD]
[TD]Item_I4[/TD]
[TD]Item_J4[/TD]
[TD]Item_...n4[/TD]
[/TR]
</tbody>[/TABLE]
Meaning, Input a number and then depending on the number looping also on that letter+the number of letters. So, After it's done with all the G's items looping over the H's items, and so on... N numbers could be the input. I saw something similar a while back but now I can't find it
Last edited: