Problem with using _global vars

I set


_global.picWmax = 436;

But when I call the imageSize function with the if statement it doesn’t work.


function image(){

if (picture._width > picWmax){
       //do that thing;
}
else{
     //do default}
}

do that thing happens everytime regardless of size. However if I use


if (picture._width > 436){
       //do that thing;
}
else{
   //do default
}

Default only happens if the picture is less than 436.

Why?