Multiple if statements at once

i searched because i thought i saw this thread but found no luck. how can i do this.
to clarify i want to say something like
onClipEvent (enterFrame) {
if (x=1) and (y = 1)
{trace (“x and y equal 1”)}
else
{trace (“x and y dont equal 1”)}

thanks, also
i googled it as well but didnt quite find the things i wanted to