Turtle, Patch

xcor

Description:
Returns the x-coordinate of the turtle or patch.

Examples:
if xcor = 2 [setc red] commands the turtle to set its color to red of its x-coordinate is equal to 2.

Related Commands:
setxcor who xcor-at xcor-of xcor-towards ycor