Turtle and Observer Command

pc-ahead

Reports the color of the patch one space ahead in the direction that the turtle is facing. If called by the observer, it will assume coordinates of (0,0).
Please see the color reference for more info on colors.

Examples:

if pc-ahead = blue [fd 1] commands the caller to move forward 1 if the patch ahead of it is blue.

Related commands:
stamp pc-at pc-towards