Using the Gie Gie sprite code, pick a Boolean block (AND, OR). Drag in the variables (like tired? or needs water?). Snap it into the code. Press the buttons for Tired and Far. Switch the costumes, based on the result you want. Switch the outcome. To test your code. Click the Gie Gie sprite. Does Gie Gie walk or rest? You can tinker with various scenarios, or create your own.
Images from Canva.