How do you make image sprite not go beyond a certain coordinate

Description

Hi I am making a game in which the sprite moves when the button is pressed. But I want it to not go beyond a certain coordinate. I am attaching the code below Pls suggest ways to rectify it. Thank you I also tried leaving the "then" blank but it doesn't seem to work

How to visually discriminate between sprite properties and user variables - Advanced Topics - Snap! Forums

Unit 1 Lab 5: Block Types and Calculations

Move to a point(x,y) smoothly - MIT App Inventor Help - MIT App Inventor Community

Using Pygame to move your game character around

Why Doesn't This Code Work As Intended? Visibility? - Unit and Lesson Discussion - Code.org Professional Learning Community

AP Computer Science

Move to a point(x,y) smoothly - MIT App Inventor Help - MIT App Inventor Community

LearnOpenGL - Coordinate Systems

Disable sprites moving offscreen - Snap! Feature Requests - Snap! Forums

$ 27.99USD
Score 4.8(533)
In stock
Continue to book