Hi People,

I´m working on a point sprite shader with rotation based on the acceleration of the particles.

The conversion “Angle= asin (Acceleration/4)” works but it seems that the rotation of the quads is inverted for Angle > 0.25(East) and < 0.75(West).

I want to invert the angle in this part using this code, but only works the first conditional.

Am I missing something?

```
float Accel3 =normalize(tex2Dlod(SampData, TexCd).ba);
float Angle=asin (Accel/4);
if (Angle >= 0.25)
{Angle=Angle;}
else if (Angle>= 0.75)
{Angle=1-Angle;}
```

Is it possible to use a sort of double conditional?

like:

```
if [Angle <= 0.25) "and" (Angle >= 0.75](https://vvvv.org/documentation/Angle-<=-0.25)-"and"-(Angle->=-0.75)
{Angle=Angle;}
else
{Angle=1-Angle;}
```

Any idea would be very appreciated.

thanks in advance.

Ari.