Take a look at this:
0 < value > -0.2f
Firstly 0 < value
is evaluated, it returns bool
value then it tries it compare bool
to float number -0.2f
, so it returns error, because it is not permitted.
You want to check if value is less and if value is greater than, so this is what you want to do:
if (0 < value && value > -0.2f) { }