I don´t know how I am able to ask in an if(-thing) if a transform is beetween 2 values

(I´m a beginner and sorry for my bad english)

I want it like that, but that doesn´t function:

if (transform.rotation (0,(> -1), 0) && transform.rotation (0,( < 1), 0))
{
//hbfhhdhjabhj
}

Thanks!!

if(transform.rotation.y > -1 && transform.rotation.y < 1)
{
// Do this
}