In control flow how do i ensure the next block of code only executes if the current one executes successfully? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In control flow how do i ensure the next block of code only executes if the current one executes successfully?

Eg a code that only asks for social security number if the email was correct?

22nd Jul 2018, 7:16 AM
Augustine
Augustine - avatar
1 Answer
0
you can just use an if statement to see if the previous input was in the correct format
22nd Jul 2018, 7:19 AM
hinanawi
hinanawi - avatar