Dont know very much about PHP this shoule be a straightforward one for anyone familiar with it. Below I am trying to figure out what this line does so I can replicate it in Java.
if (!$power) $power=0;
I think it is saying, If power is null then power is 0.
Can anyone confirm?