Skip to Content

if key pressed vs when key pressed

« How do I...?
1 reply [Last post]
Member
What is the difference between these two blocks of code

save image
Replies
Member
I can't see the second block of code. 
Did the second block say: When key pressed, forever move 10 steps. 

The first block says that only if the green flag is pressed, then check the space key, otherwise don't do anything if the space key is pressed.  

Hope that answers your question