Answers.Body: <p>If I were you I'd use a loop inside the program. In this loop the prompt for entering the code would be displayed, then the user input would be read. Finally, the code would be checked and if correct, the proper action executed, otherwise a failure message would be shown and the execution would loop back to the start (display the prompt).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-24T09:30:33.813Z
Answers.LastActivityDate: 2019-04-24T09:30:33.813Z
Answers.UserDisplayName: zovits
Body: <p>I've got a program with a code lock, and I would like the program to restart when you enter the incorrect code. Does anyone know of a way to do that?</p>
  
Tags: <ev3><mindstorms>
Title: Is there a way to restart a program with EV3?
UserDisplayName: Blupper
ThreadText: # Is there a way to restart a program with EV3?
  
  (Asked by: username_0 on 2019-04-24)
  
  I've got a program with a code lock, and I would like the program to restart when you enter the incorrect code. Does anyone know of a way to do that?
  
  **Tags:** ev3, mindstorms
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-04-24. Score: 1
  
  If I were you I'd use a loop inside the program. In this loop the prompt for entering the code would be displayed, then the user input would be read. Finally, the code would be checked and if correct, the proper action executed, otherwise a failure message would be shown and the execution would loop back to the start (display the prompt).
  
  
  ---
  
  