Screen Resulution

hey guys is there a way i can tell unity to check and see if the resolution is 1080 by what ever. This is an example of what i mean

if( resolution in here ){

 then do something

}  

this possible ?

You can use Screen.width to get the current screen width in px