>>866
if a and b and chkimg() then
if chkimg() and a and b then

結構変わるかと