while loop not working

hi everyone

i am facing a very strange problem . please help me why my while loop is not working.

below is my code

#!/bin/ksh
file=RCMC_ABC_999_080924_210813.DAR
echo ${file}
value=001
count=10
echo "abc"
echo ${count}
value=$((${value} + 1 ))
echo ${value}
while [[ "${count}" -lt 0 ]]
do
  echo "aish"
  count=$((${count} -1 ))
done

and the output of the above is

./a.sh
RCMC_ABC_999_080924_210813.DAR
abc
10
2

Change the while loop's arithmetic operator..

while [[ ${count} -gt 0 ]]
while [[ "${count}" -gt 0 ]]

instead of:

while [[ "${count}" -lt 0 ]]

??

hey everyone thanks for u r reply really appreciate it
sry this was silly mistake :frowning: