Het webdude, Sometimes the <@IFEMPTY> doesn't always work because empty space has an ASCII value.
So, I'll replace it with: <@IF EXPR="<@LENGTH STR=' <@VAR 'lcell<@VAR l_counter>'>'><1"> And you'll be sure that if the value is empty, it will skip it. Rick Sanders Vice President of I.T. Webenergy-Icantec Kitchener - Waterloo:(519) 741-2117 Montreal: (514) 808-0788 www.webenergy-sw.com www.icantec.ca ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 21, 2004 4:20 PM Subject: Witango-Talk: ARRAY?? > Okay, > > I'm tired and crabby and need help. This should be simple, but for > some reason, I am just not seeing it. > > I have variables that I am populating with small amounts of text. > They are named ... > > <@VAR lcell1> = test1 > <@VAR lcell2> = > <@VAR lcell3> = test3 > <@VAR lcell4> = test4 > etc. > etc. > etc. > > Let's just stop at 4 for now to keep this simple (simple is good! Good simple) > > Now I created a loop and a counter that counts up to 4 and I have > added this in the loop... > > <@IFEMPTY <@VAR 'lcell<@VAR l_counter>'>> > <@ELSE> > <@ASSIGN NAME="llcell<@VAR l_counter>" VALUE="<@VAR 'lcell<@VAR l_counter>'>"> > </@IF> > > And when I display the results I can see the values correctly. It is > working as expected BUT I would like to skip the counter on every > <@VAR lcell that is empty. I other words, If <@VAR lcell2> is empty, > move the values from <@VAR lcell3> into <@VAR lcell2> and also move > the values from <@VAR lcell4> into <@VAR lcell3>. Is this making > sense? I would like to get all the variables named 1, 2, 3, 4 etc. > with no empty variables between. > > The final result should be a list of numbered variable that contain > no empty variables or empty variables in the end... > > Original Variables... > > <@VAR lcell1> = test1 > <@VAR lcell2> = > <@VAR lcell3> = test3 > <@VAR lcell4> = test4 > > Modified Variables > > <@VAR llcell1> = test1 > <@VAR llcell2> = test3 > <@VAR llcell3> = test4 > <@VAR llcell4> = > > Thanks > > There's gotta be an easy way to do this > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf