division by 0 error

Hi,
I am writing a script that among other things will be checking for various files on mount points. One of the conditions is that unless the server has failed over the df command will show root ( / ). If when checking the files the script comes across /, I want it to skip it, otherwise to complete the printf statement.
This portion of the script is

if ${MNTD} == "/" then
> /dev/null
else
printf '%12 ......
When running, if the script comes across a / I am receiving a 'Division by 0' error and it will abort the query.
Any suggestions would be greatly appreciated.
Thanks

Try quoting the camparison variable

if "${MNTD}" == "/" then

Jerry

Please put code inside

 tags (and forget all that silly FONT and SIZE crap).

 if ${MNTD} == "/" then
        > /dev/null
 else
        printf '%12 ......

[/quote]

[indent]
However, since that really isn't code ...

Why would you be using any of the mount points as a divisor?

[ "$MNTD" = / ] || printf ...

Or:

if [ "$MNTD" != / ]
then
   printf ...
fi