Hi,
I am trying to get a loop working for one order - I am having issues because the index of the array starts at 0
$null = For ($i=0; $i -le $OrderNumbers.count-1; $i++)
{
}
I have tried using a temp variable to say if order numbers .count = 1 to set to two but then that loops through twice once for 0 and once for 1.
I am only wanting it to loop through once for one record.
Any help appreciated
This test does not seem to work at all
$q = 0
$t = 1
$OrderNumbers = @(1,2)
$OrderNumbers.count
$x=1
for ($y=0; $y -le $OrderInfo.count-1; $y++)
{
"yo"
$x++
$x
}