dickiebird
Programmer
Rather than use if ...then...fi, can ksh use the comparison short-cut that's used in C ? ( using ? and : )
I do a check on a count to roll from 1 to 99 - so can I do :
cty=($cty < 99 ? cty++ : cty=1)
echo $cty
TIA
Dickie Bird (
-)))
I do a check on a count to roll from 1 to 99 - so can I do :
cty=($cty < 99 ? cty++ : cty=1)
echo $cty
TIA
Dickie Bird (