screen.currentresolution

hey is there a way to do something like this?

if(Screen.currentResolution == (1280.width, 720.height)){
	do this
}
if (Screen.width == 1280  Screen.height == 720)
{
// do this
}

many thanks!