Hi,
I want to write a while loop like this can any one say me whats wrong with my loop
USAGE="Usage: Mail.ksh"
integer i=3
while ((1<i<=3))
do
.
.
.
.
(( CMD_JUL = LSD_JUL - i ))
CUR_MAINT_DATE=$(julian2date ${CMD_JUL})
.
.
.
i=i-1
done
Problem is that its going beyond on) to -1 -2 and so on.....to never ending loop
I want i to start at 3 then 2 then 1 when its below 1 it have to exit the loop... can anyone say me how to do this
Any suggestion are ok... if this can be converted in to for loop or any other loop so that it work i am fine with it...
Thanks for helping me
Bhagya