Trouble with GrayScale Filter

BlitzPlus Forums/BlitzPlus Programming/Trouble with GrayScale Filter

You can't replace If Red>Green And Red>Blue with If Red > (Green And blue), And is a binary operator as in 4 And 3 gives 0.

Also you could calculate luminance as 0.299 Red + 0.587 Green + 0.114 Blue for better results