If I am following your logic it appears that if the variable is between 0 and 9% you want to do the if?
Try this...
ifthenelse (variable >= '0%' and variable <= '9%', value, value).
If I am following your logic it appears that if the variable is between 0 and 9% you want to do the if?
Try this...
ifthenelse (variable >= '0%' and variable <= '9%', value, value).