Turtle Command

ycor

Returns the y-coordinate of the turtle.

Examples:

if ycor = 2 [setc red] commands the turtle to set its color to red of its y-coordinate is equal to 2.

Related commands:
xcor ycor-at ycor-of ycor-towards