Hi All,
I want to know if there is any way to exit from both the parent and child loop simultaneously without adding any kind of conditional statement.
********************************************************
#!bin/ksh
a=5
if[[ $a -gt 5 ]]
then
echo "a=5 and not went to else cdn."
else
if [[ $a==5 ]]
then
echo "a=6"
fi
echo "a=5 and not worked"
fi
echo "got it"
********************************************************
Once the program prints "a=6" it should print "got it".
Will any thing work here without going for label,goto command.
I tried with break but it din't work at all.
Please suggesst me your views.
/Nandoo.