It will be hard to find a value is both less than 0.6 *and* greater than 0.9 at the same time. Perhaps you mean OR, rather than AND. Also, you are going to get into trouble eventually when your Boolean expression doesn't produce any results. Try a syntax like this.
indices = Where(a LT 0.6 OR a GT 0.9, count)
IF count GT 0 THEN a[indices] = 0.0
|