I like SCREEN for this -- less typing
SCREEN
But with both you can go a step further -- get either Width or Height and you can use the function directly in your If test:
Width
Height
If
For more information, see the wiki Searching the Forum for Answers section.