T
Tank
I am trying to incorporate a count into a variable within an if...else
statement. Here is the code. I cant get it to work. perhaps someone
can assist me.
folder = window.prompt('starting folder','default');
picnumber = window.prompt('pictures taken?','default');
f2 = parseFloat(folder);
p2 = parseFloat(picnumber);
varAdd = f2+p2-1;
varImg = p2;
var9 = '000';
var99 = '00';
var999 = '0';
var9999 = '0000';
for (count1=f2;count1<=varAdd;count1++)
if (count1 <=9)
varFc = var9999 + count1 +;
else if (count1 <=99)
varFc = var9 + count1 +;
else if (count1 <=999)
varFc = var99 + count1 +;
else if (count1 <=9999)
varFc = var999 + count1 +;
else
varFc = + count +;
document.write('mkdir',varFc,'<br>');
statement. Here is the code. I cant get it to work. perhaps someone
can assist me.
folder = window.prompt('starting folder','default');
picnumber = window.prompt('pictures taken?','default');
f2 = parseFloat(folder);
p2 = parseFloat(picnumber);
varAdd = f2+p2-1;
varImg = p2;
var9 = '000';
var99 = '00';
var999 = '0';
var9999 = '0000';
for (count1=f2;count1<=varAdd;count1++)
if (count1 <=9)
varFc = var9999 + count1 +;
else if (count1 <=99)
varFc = var9 + count1 +;
else if (count1 <=999)
varFc = var99 + count1 +;
else if (count1 <=9999)
varFc = var999 + count1 +;
else
varFc = + count +;
document.write('mkdir',varFc,'<br>');