I have a loop:
But I want to do something special if the array reaches the 4th element in the array.
if i=3 then blah would be fine, but I need it for every 4th element.
Is there a quick way of doing this?
I tried with the vbscript MOD function, but can't seem to get any remainder that means it is always the 4th element out of the array.
Any ideas?
Code:
For i=0 To Ubound(myarray,2)
response.write myarray(0,i)
Next
But I want to do something special if the array reaches the 4th element in the array.
if i=3 then blah would be fine, but I need it for every 4th element.
Is there a quick way of doing this?
I tried with the vbscript MOD function, but can't seem to get any remainder that means it is always the 4th element out of the array.
Any ideas?
