Well now Sam you have changed some of the values, as noted by James, but let's not let that get in the way of your education.
You did understand the issue of the quotes?
James, I would test in the order I stated as then non integer values are catered for
=If(AE30=0,0.2,If(AE30>5,0,0.1))
Ie...