Showing us a picture with highly truncated mathscript code is not useful. Attach the VI instead.
You are comparing an array containing many different values (0..799) to a scalar. What outcome are you actually expecting?
(It is not clear why you even use mathscript for whatever you are trying to do here.)