Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Command on how to end all loops / code when a condition is met?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
GodsObscure




PostPosted: Wed Jan 06, 2016 1:55 pm   Post subject: Command on how to end all loops / code when a condition is met?

I am trying to make a racing game, and when the first car hits the finish line, I'd like it to stop all the other stuff going on in the game. Any ideas? Thanks!
Sponsor
Sponsor
Sponsor
sponsor
Jeffmagma




PostPosted: Wed Jan 06, 2016 6:10 pm   Post subject: Re: Command on how to end all loops / code when a condition is met?

Stop everything? I think the quit or return command works.
If you just want to exit a loop, try the exit command
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: