I have a procedure that returns coords of a specific location... when those coords are returned I want to trigger different actions depending on which X,Y is returned, I do not know how to write this properly.
The below is written incorrect and returns the error "Closing parenthesis expected" but hopefully someone can understand what I am trying to do.
if FindNear(X, Y) then
begin
if (X=242..260) and (Y=526..574) then begin
writeln('Middle');
end;
So, just to be clear, with the above with the ".."s I was trying to detect if X and Y were found in that range.
Thanks.


Reply With Quote





