Do you mean:
if ! [ 0 == 2 ]; then
echo Hello;
fi
You lacked space around the equality operator.
This might be the time to read http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html – especially the sections about if then else and operators. I usually have this open when I am writing scripts..