If you are looking for the desktop resolution then there are macros for that purpose: @DesktopWidth and @DesktopHeight.
However, your code is not working because of a syntax error. Look again at what you are doing with the If test - the &
operator is for string concatenation! You were looking for And
.
That means your code is being evaluated something like $a[0] = ((1024 & $a[1]) = 768)
, so whatever the case, you are comparing $a[0]
to a boolean, which has to be false (there is no string such that "1024" & string = "768").