how to get the similar function in while loop or for loop

Dear all

   How to write the shell script for the following statement:

(C programming)
for (i=0;i<30;i++) {
if i=1
continue *skip this number
(To do function here....)
...
}

similar statement in while loop....

I wrote the script in sh shell:

i=0
while [ $i -ng 30 ]
do
if [ $i -eq 1 ]
then continue
fi
(To do function here....)
i=$1+1
done

Unlucky, I can't get the correct result, can anyone help me?

Best regards

Something like this should do it

#!/bin/sh
i=0
while [ $i -le 30 ]
do
case $i in
1) echo "skipped"
*) echo $i
esac

  i = \`expr $i \+ 1 \`

done

You need semicolons to terminate the branches on the case:

1) echo "skipped" ;;
*) echo $i ;;

Thanks for your replay and implementation!!!