Problems with conditional

I’m trying to modify a simple program I’d written -
The conditional is where it goes awry.
I want to keep asking the question until I get an answer between 3 and 7.
For 1, 2, 8, 9 ,10 etc it should ask, otherwise draw the shape based on the number of sides.
The code under “when up arrow” is pressed was my original code. But it just exited if I entered 2 sides, rather than give an opportunity to try again.
Look forward to your suggestions.

I took a look at your code and moved some things around…this should work. The “forever if” quits the loop if the condition is not met.