Okay first, the reporter patch
receives an identificator that's linked to a patch. If you want to ask
something to a patch at a certain position you want to use [patch-at]
1.
Second, I don't understand the use of question mark in your code ?
.
Third, by using [pcolor = black]
the compiler understands you want to set
rather than get.
Lastly, you can use the word of
to access values of an agent.
So I would put it out like this:
to myprocedure
ask patch-at xcoord-temp ycoord-temp
[
check-color
]
end
to check-color
ifelse [pcolor] of (patches in-radius rnd_radius) = black
[print "true"]
[print "false"]
end
Note than I'm using an extra procedure that may not be complete, perhaps it would have to receive the temporal coordinates you use; unless these coordinates are global variables that change overtime, then you can use the procedures like that.
Please tell us if this helps you, I don't have NetLogo installed right now, I did that based on the dictionary.
Edit:
As stated in the comments
[pcolor] of (patches in-radius rnd_radius)
will return a list, thus it can never equal black
.
You'll have to ask for an specific neighbor of the patch or perhaps use one-of
in the list resulting from the previous statement..