fixed issue 871, comparator operation

fixed the bug in raster local comparator operations. issue number 871
for future reference, the space between if and the ( is not desired. If that's an auto syntax thing you might be able to change it in the settings.